.class public Lcom/nemustech/regina/ReginaLauncher;
.super Landroid/app/Activity;
.source "ReginaLauncher.java"

# interfaces
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;,
        Lcom/nemustech/regina/ReginaLauncher$ElementLoader;,
        Lcom/nemustech/regina/ReginaLauncher$DelayShower;,
        Lcom/nemustech/regina/ReginaLauncher$TelephonyContentObserver;,
        Lcom/nemustech/regina/ReginaLauncher$MMSReceiver;,
        Lcom/nemustech/regina/ReginaLauncher$AppWidgetResetObserver;
    }
.end annotation


# static fields
.field public static final ANIMATION_DELETE_WORKSPACE:I = 0x65

.field public static final ANIMATION_NONE:I = 0x64

.field static final APPWIDGET_HOST_ID:I = 0x800

.field private static final CACHE_WORKSPACE_THUMBNAIL_INTERVAL:I = 0x64

.field private static final CACHE_WORKSPACE_THUMBNAIL_START_DELAY:I = 0x7d0

.field public static final DEBUG_WORKSPACE_EXPLORING_SWITCH:Z = true

.field public static final DEBUG_WORKSPACE_EXPLORING_TAG:Ljava/lang/String; = "WorkspaceExploring"

.field static final EXTRA_CUSTOM_WIDGET:Ljava/lang/String; = "custom_widget"

.field public static final INITIALIZATION_FAIL:I = 0x0

.field public static final INITIALIZATION_SUCCESS:I = 0x1

.field public static final LAYER_WORLD:I = 0x0

.field private static LOG_FLAG:Z = false

.field private static final POP_ANIMATION_DISTANCE:F = 1.5f

.field private static final POP_ANIMATION_DURATION:J = 0x64L

.field public static final REQUEST_CHANGE_WALLPAPER:I = 0x9

.field private static final REQUEST_CREATE_APPWIDGET:I = 0x8

.field private static final REQUEST_CREATE_LIVE_FOLDER:I = 0x7

.field private static final REQUEST_CREATE_SHORTCUT:I = 0x6

.field private static final REQUEST_PICK_APPLICATION:I = 0x2

.field private static final REQUEST_PICK_APPT_WIDGET_APP:I = 0xa

.field private static final REQUEST_PICK_APPWIDGET:I = 0x5

.field private static final REQUEST_PICK_CLOCK_WIDGET_APP:I = 0xb

.field private static final REQUEST_PICK_LIVE_FOLDER:I = 0x4

.field private static final REQUEST_PICK_SHORTCUT:I = 0x1

.field private static final REQUEST_PICK_WIDGET:I = 0x3

.field public static final RG_WALLPAPER_TEMP_FILE_PATH:Ljava/lang/String; = "/sdcard/rg_temp_wallpaper"

.field public static final RG_WALLPAPER_TEMP_FILE_URI:Ljava/lang/String; = "file:///mnt/sdcard/rg_temp_wallpaper"

.field static final SEARCH_WIDGET:Ljava/lang/String; = "search_widget"

.field private static final TAG:Ljava/lang/String; = "ReginaLauncher"

.field public static final TASK_CLASS_NAME:Ljava/lang/String; = "com.nemustech.regina.apps.tasks.TaskApp"

.field public static final TASK_PACKAGE_NAME:Ljava/lang/String; = "com.nemustech.regina.apps.tasks"

.field public static final VIEW_APPLICATION_LIST:I = 0x4

.field public static final VIEW_MODE_MAX:I = 0x7

.field public static final VIEW_WORKSPACE:I = 0x0

.field public static final VIEW_WORKSPACE_BROWSER:I = 0x5

.field public static final VIEW_WORKSPACE_EDIT:I = 0x3

.field public static final VIEW_WORKSPACE_RETURNING_SWITCHER:I = 0x2

.field public static final VIEW_WORKSPACE_SCROLL_BY_CTRL_BTN:I = 0x6

.field public static final VIEW_WORKSPACE_SWITCHER:I = 0x1

.field private static final mUnitWidth:F = 1.0f


# instance fields
.field private mAntiAliasing:Z

.field private mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

.field private mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

.field private mCacheWorkspaceThumbRunnable:Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;

.field private mClockWidgetCount:I

.field private mCorrectionRatio:F

.field private mCurrentAppWidgetId:I

.field private mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

.field private mDelayShower:Lcom/nemustech/regina/ReginaLauncher$DelayShower;

.field private mDialogCare:Lcom/nemustech/regina/DialogCare;

.field private mElementAppList:Lcom/nemustech/regina/ElementAppList;

.field private mElementIsAdding:Z

.field private mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

.field private mElementLoaderThread:Ljava/lang/Thread;

.field private mElementLocater:Lcom/nemustech/regina/ElementLocator;

.field private mElementMaker:Lcom/nemustech/regina/ElementMaker;

.field private mElementTrash:Lcom/nemustech/regina/Element;

.field private mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

.field private mFailToLoad:Z

.field private mHandler:Landroid/os/Handler;

.field private mIntentFilter:Landroid/content/IntentFilter;

.field private mInterceptView:Lcom/nemustech/regina/Intercepter;

.field private mIsCacheWorkspaceThumbRunnableAdded:Z

.field private mIsElementLoading:Z

.field private mIsLaunchingApp:Z

.field private mIsSecretMode:Z

.field private mIsShortCutExpansion:Z

.field private mIsShowCalendarDlg:Z

.field private mIsShowClockDlg:Z

.field private mLayoutInflater:Landroid/view/LayoutInflater;

.field private final mMMSReceiver:Landroid/content/BroadcastReceiver;

.field private mMenuCare:Lcom/nemustech/regina/MenuCare;

.field private mOnStop:Z

.field private mOneByOneBitmap:Landroid/graphics/Bitmap;

.field private mProgressDialog:Landroid/app/Dialog;

.field private mReginaAppFilter:Lcom/nemustech/regina/ReginaAppFilter;

.field private mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

.field private mReginaPref:Lcom/nemustech/regina/ReginaPreference;

.field private mResCare:Lcom/nemustech/regina/ResourceCare;

.field private mResumeWorld:Z

.field private mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

.field private mScrollableWidgetProvider:Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

.field private mSelRequester:Lcom/nemustech/regina/SelectionRequester;

.field private mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mSettedClockWidget:Lcom/nemustech/regina/widgets/clock/ClockWidget;

.field private mSettingsCalled:Z

.field private mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private final mTelephonyObserver:Landroid/database/ContentObserver;

.field private mTrashBound:Landroid/graphics/RectF;

.field private mVibrator:Landroid/os/Vibrator;

.field private mViewMode:I

.field private mWeatherTempUnit:I

.field private mWeatherUpdatePeriod:J

.field private final mWidgetObserver:Landroid/database/ContentObserver;

.field private mWorkspaceName:Landroid/widget/TextView;

.field private mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

.field private mWorld:Lcom/nemustech/tiffany/world/TFWorld;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 85
    const/4 v0, 0x0

    sput-boolean v0, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 83
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 154
    new-instance v0, Lcom/nemustech/regina/ReginaLauncher$AppWidgetResetObserver;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ReginaLauncher$AppWidgetResetObserver;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWidgetObserver:Landroid/database/ContentObserver;

    .line 155
    new-instance v0, Lcom/nemustech/regina/ReginaLauncher$TelephonyContentObserver;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ReginaLauncher$TelephonyContentObserver;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mTelephonyObserver:Landroid/database/ContentObserver;

    .line 156
    new-instance v0, Lcom/nemustech/regina/ReginaLauncher$MMSReceiver;

    invoke-direct {v0, p0, v3}, Lcom/nemustech/regina/ReginaLauncher$MMSReceiver;-><init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ReginaLauncher$1;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mMMSReceiver:Landroid/content/BroadcastReceiver;

    .line 168
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mTrashBound:Landroid/graphics/RectF;

    .line 183
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsLaunchingApp:Z

    .line 184
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShowCalendarDlg:Z

    .line 185
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShowClockDlg:Z

    .line 186
    const/high16 v0, -0x4080

    iput v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mCorrectionRatio:F

    .line 187
    iput v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherTempUnit:I

    .line 188
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherUpdatePeriod:J

    .line 190
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    .line 200
    const/4 v0, 0x2

    new-array v0, v0, [Lcom/nemustech/regina/WorkspaceViewGroup;

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    .line 207
    iput-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    .line 209
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsElementLoading:Z

    .line 210
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mResumeWorld:Z

    .line 211
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    .line 212
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettingsCalled:Z

    .line 213
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mOnStop:Z

    .line 214
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    .line 528
    new-instance v0, Lcom/nemustech/regina/ReginaLauncher$DelayShower;

    invoke-direct {v0, p0, v3}, Lcom/nemustech/regina/ReginaLauncher$DelayShower;-><init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ReginaLauncher$1;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDelayShower:Lcom/nemustech/regina/ReginaLauncher$DelayShower;

    .line 83
    return-void
.end method

.method static synthetic access$100(Lcom/nemustech/regina/ReginaLauncher;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 83
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->onAppWidgetReset()V

    return-void
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ReginaPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    return-object v0
.end method

.method static synthetic access$1100()Z
    .locals 1

    .prologue
    .line 83
    sget-boolean v0, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    return v0
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ElementAndroidWidget;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 83
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/ReginaLauncher;->notifyReadyToAppWidget(Lcom/nemustech/regina/ElementAndroidWidget;I)V

    return-void
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/AppInfoManager;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    return-object v0
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/ReginaLauncher;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$1502(Lcom/nemustech/regina/ReginaLauncher;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsElementLoading:Z

    return p1
.end method

.method static synthetic access$200(Lcom/nemustech/regina/ReginaLauncher;)[Lcom/nemustech/regina/WorkspaceViewGroup;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/tiffany/world/TFWorld;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    return-object v0
.end method

.method static synthetic access$600(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ResourceCare;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mResCare:Lcom/nemustech/regina/ResourceCare;

    return-object v0
.end method

.method static synthetic access$700(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ElementMaker;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    return-object v0
.end method

.method static synthetic access$800(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ElementLocator;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    return-object v0
.end method

.method static synthetic access$900(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;
    .locals 1
    .parameter "x0"

    .prologue
    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mCacheWorkspaceThumbRunnable:Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;

    return-object v0
.end method

.method static synthetic access$902(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;)Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 83
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mCacheWorkspaceThumbRunnable:Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;

    return-object p1
.end method

.method private cacheTexture(Z)V
    .locals 14
    .parameter "mode"

    .prologue
    .line 2737
    const-class v10, Lcom/nemustech/tiffany/world/TFWorld;

    monitor-enter v10

    .line 2738
    :try_start_0
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    if-eqz v11, :cond_3

    .line 2740
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v7

    .line 2741
    .local v7, workspaceMode:I
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v11}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v6

    .line 2742
    .local v6, workspaceIndex:I
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v11}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceProvider()[Lcom/nemustech/tiffany/world/TFObjectProvider;

    move-result-object v9

    .line 2744
    .local v9, workspaceProviders:[Lcom/nemustech/tiffany/world/TFObjectProvider;
    const/4 v4, 0x0

    .local v4, j:I
    :goto_0
    const/4 v11, 0x2

    if-ge v4, v11, :cond_2

    .line 2745
    aget-object v8, v9, v4

    .line 2746
    .local v8, workspaceProvider:Lcom/nemustech/tiffany/world/TFObjectProvider;
    invoke-virtual {v8}, Lcom/nemustech/tiffany/world/TFObjectProvider;->getItemCount()I

    move-result v3

    .line 2747
    .local v3, itemCount:I
    const-string v11, "ReginaLauncher"

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    const-string v13, "%%% itemCount:"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-static {v11, v12}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 2748
    const/4 v2, 0x0

    .local v2, i:I
    :goto_1
    if-ge v2, v3, :cond_1

    .line 2750
    if-nez p1, :cond_0

    if-ne v4, v7, :cond_0

    if-ne v2, v6, :cond_0

    .line 2748
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 2751
    :cond_0
    invoke-virtual {v8, v2}, Lcom/nemustech/tiffany/world/TFObjectProvider;->getItem(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/nemustech/regina/RGWorkspace;

    .line 2752
    .local v5, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v5, p1}, Lcom/nemustech/regina/RGWorkspace;->cacheTexture(Z)V

    goto :goto_2

    .line 2759
    .end local v2           #i:I
    .end local v3           #itemCount:I
    .end local v4           #j:I
    .end local v5           #workspace:Lcom/nemustech/regina/RGWorkspace;
    .end local v6           #workspaceIndex:I
    .end local v7           #workspaceMode:I
    .end local v8           #workspaceProvider:Lcom/nemustech/tiffany/world/TFObjectProvider;
    .end local v9           #workspaceProviders:[Lcom/nemustech/tiffany/world/TFObjectProvider;
    .end local p0
    :catchall_0
    move-exception v11

    monitor-exit v10
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v11

    .line 2744
    .restart local v2       #i:I
    .restart local v3       #itemCount:I
    .restart local v4       #j:I
    .restart local v6       #workspaceIndex:I
    .restart local v7       #workspaceMode:I
    .restart local v8       #workspaceProvider:Lcom/nemustech/tiffany/world/TFObjectProvider;
    .restart local v9       #workspaceProviders:[Lcom/nemustech/tiffany/world/TFObjectProvider;
    .restart local p0
    :cond_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 2756
    .end local v2           #i:I
    .end local v3           #itemCount:I
    .end local v8           #workspaceProvider:Lcom/nemustech/tiffany/world/TFObjectProvider;
    :cond_2
    :try_start_1
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getElementAppList()Lcom/nemustech/regina/ElementAppList;

    move-result-object v11

    invoke-virtual {v11}, Lcom/nemustech/regina/ElementAppList;->getInternalObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/tiffany/world/TFHolder;

    move-object v0, p0

    check-cast v0, Lcom/nemustech/tiffany/world/TFHolder;

    move-object v1, v0

    .line 2757
    .local v1, applistHolder:Lcom/nemustech/tiffany/world/TFHolder;
    if-nez p1, :cond_4

    const/4 v11, 0x1

    :goto_3
    invoke-virtual {v1, v11}, Lcom/nemustech/tiffany/world/TFHolder;->handleTextureMemory(Z)V

    .line 2759
    .end local v1           #applistHolder:Lcom/nemustech/tiffany/world/TFHolder;
    .end local v4           #j:I
    .end local v6           #workspaceIndex:I
    .end local v7           #workspaceMode:I
    .end local v9           #workspaceProviders:[Lcom/nemustech/tiffany/world/TFObjectProvider;
    :cond_3
    monitor-exit v10
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 2760
    return-void

    .line 2757
    .restart local v1       #applistHolder:Lcom/nemustech/tiffany/world/TFHolder;
    .restart local v4       #j:I
    .restart local v6       #workspaceIndex:I
    .restart local v7       #workspaceMode:I
    .restart local v9       #workspaceProviders:[Lcom/nemustech/tiffany/world/TFObjectProvider;
    :cond_4
    const/4 v11, 0x0

    goto :goto_3
.end method

.method private canceledActivityResult(Landroid/content/Intent;)V
    .locals 3
    .parameter "data"

    .prologue
    const/4 v2, -0x1

    .line 904
    if-eqz p1, :cond_2

    .line 905
    const-string v1, "appWidgetId"

    invoke-virtual {p1, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 906
    .local v0, appWidgetId:I
    if-eq v0, v2, :cond_0

    .line 907
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    if-eqz v1, :cond_1

    .line 908
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v2

    invoke-virtual {v1, v2, v0}, Lcom/nemustech/regina/ElementLocator;->removeElementByAppWidgetId(ZI)V

    .line 920
    .end local v0           #appWidgetId:I
    :cond_0
    :goto_0
    return-void

    .line 910
    .restart local v0       #appWidgetId:I
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    if-eqz v1, :cond_0

    .line 911
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    invoke-virtual {v1, v0}, Lcom/nemustech/regina/ReginaAppWidgetHost;->deleteAppWidgetId(I)V

    goto :goto_0

    .line 916
    .end local v0           #appWidgetId:I
    :cond_2
    iget v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mCurrentAppWidgetId:I

    if-eq v1, v2, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    if-eqz v1, :cond_0

    .line 917
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    iget v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mCurrentAppWidgetId:I

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaAppWidgetHost;->deleteAppWidgetId(I)V

    goto :goto_0
.end method

.method private clearTypedText()V
    .locals 2

    .prologue
    .line 3208
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    if-eqz v0, :cond_0

    .line 3209
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->clear()V

    .line 3210
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->clearSpans()V

    .line 3211
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 3213
    :cond_0
    return-void
.end method

.method private createElementWorkspaceControlBtn()V
    .locals 2

    .prologue
    .line 1310
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementMaker;->createWorkspaceControlBtn()Lcom/nemustech/regina/Element;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    .line 1311
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getPlaceHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v0

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1312
    return-void
.end method

.method private createTrash()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 1315
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementMaker;->createTrash()Lcom/nemustech/regina/Element;

    move-result-object v2

    iput-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementTrash:Lcom/nemustech/regina/Element;

    .line 1316
    invoke-static {p0}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v0

    .line 1317
    .local v0, screenHeight:I
    div-int/lit8 v2, v0, 0x2

    invoke-static {p0, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementTrash:Lcom/nemustech/regina/Element;

    invoke-virtual {v3}, Lcom/nemustech/regina/Element;->getHeight3D()F

    move-result v3

    const/high16 v4, 0x4000

    div-float/2addr v3, v4

    sub-float v1, v2, v3

    .line 1318
    .local v1, y:F
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementTrash:Lcom/nemustech/regina/Element;

    invoke-virtual {v2}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v2

    neg-float v3, v1

    invoke-virtual {v2, v5, v3, v5}, Lcom/nemustech/tiffany/world/TFObject;->locate(FFF)V

    .line 1319
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementTrash:Lcom/nemustech/regina/Element;

    invoke-virtual {v2}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 1320
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementTrash:Lcom/nemustech/regina/Element;

    invoke-virtual {v2}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v2

    check-cast v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1321
    return-void
.end method

.method private forceStopAnotherLauncher()V
    .locals 7

    .prologue
    .line 280
    iget-object v5, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppFilter:Lcom/nemustech/regina/ReginaAppFilter;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaAppFilter;->getLauncherAppList()Ljava/util/List;

    move-result-object v4

    .line 281
    .local v4, riList:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    if-eqz v4, :cond_2

    .line 282
    const-string v5, "activity"

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/ReginaLauncher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    .line 283
    .local v0, am:Landroid/app/ActivityManager;
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/content/pm/ResolveInfo;

    .line 284
    .local v3, ri:Landroid/content/pm/ResolveInfo;
    iget-object v5, v3, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v5, Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget-object v2, v5, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    .line 285
    .local v2, packageName:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getPackageName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_0

    .line 286
    sget v5, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v6, 0x9

    if-ge v5, v6, :cond_1

    .line 288
    invoke-virtual {v0, v2}, Landroid/app/ActivityManager;->restartPackage(Ljava/lang/String;)V

    goto :goto_0

    .line 291
    :cond_1
    invoke-virtual {v0, v2}, Landroid/app/ActivityManager;->killBackgroundProcesses(Ljava/lang/String;)V

    goto :goto_0

    .line 296
    .end local v0           #am:Landroid/app/ActivityManager;
    .end local v1           #i$:Ljava/util/Iterator;
    .end local v2           #packageName:Ljava/lang/String;
    .end local v3           #ri:Landroid/content/pm/ResolveInfo;
    :cond_2
    return-void
.end method

.method private getTypedText()Ljava/lang/String;
    .locals 1

    .prologue
    .line 3201
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    if-nez v0, :cond_0

    .line 3202
    const/4 v0, 0x0

    .line 3204
    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method private init()V
    .locals 1

    .prologue
    .line 1478
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v0, p0}, Lcom/nemustech/regina/Intercepter;->setMainActivity(Lcom/nemustech/regina/ReginaLauncher;)V

    .line 1479
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->loadFromPreference()V

    .line 1480
    return-void
.end method

.method private initWorldCamera(Lcom/nemustech/tiffany/world/TFWorld;)V
    .locals 2
    .parameter "world"

    .prologue
    .line 2109
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$9;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ReginaLauncher$9;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFWorld;->setViewSizeChangeListener(Lcom/nemustech/tiffany/world/TFWorld$OnViewSizeChangeListener;)V

    .line 2123
    return-void
.end method

.method private loadFromPreference()V
    .locals 0

    .prologue
    .line 2927
    return-void
.end method

.method private loadFromProvider()V
    .locals 0

    .prologue
    .line 3125
    return-void
.end method

.method private notifyReadyToAppWidget(Lcom/nemustech/regina/ElementAndroidWidget;I)V
    .locals 4
    .parameter "element"
    .parameter "appWidgetId"

    .prologue
    .line 1251
    invoke-virtual {p1}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/appwidget/AppWidgetHostView;->getAppWidgetInfo()Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v0

    .line 1252
    .local v0, pInfo:Landroid/appwidget/AppWidgetProviderInfo;
    if-eqz v0, :cond_0

    .line 1253
    new-instance v1, Landroid/content/Intent;

    const-string v2, "mobi.intuitit.android.hpp.ACTION_READY"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1254
    .local v1, ready:Landroid/content/Intent;
    const-string v2, "mobi.intuitit.android.hpp.EXTRA_APPWIDGET_ID"

    invoke-virtual {v1, v2, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1255
    const-string v2, "appWidgetId"

    invoke-virtual {v1, v2, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1256
    const-string v2, "mobi.intuitit.android.hpp.EXTRA_API_VERSION"

    const/4 v3, 0x2

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1257
    iget-object v2, v0, Landroid/appwidget/AppWidgetProviderInfo;->provider:Landroid/content/ComponentName;

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 1258
    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->sendBroadcast(Landroid/content/Intent;)V

    .line 1260
    .end local v1           #ready:Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method private onAppWidgetReset()V
    .locals 1

    .prologue
    .line 276
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaAppWidgetHost;->startListening()V

    .line 277
    return-void
.end method

.method private pauseAllWorkspaces()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 3216
    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceCount(Z)I

    move-result v2

    .line 3217
    .local v2, workspaceNo:I
    const/4 v0, 0x0

    .local v0, index:I
    :goto_0
    if-ge v0, v2, :cond_0

    .line 3218
    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3, v4, v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(II)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    .line 3219
    .local v1, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspace;->pause()V

    .line 3217
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 3221
    .end local v1           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_0
    return-void
.end method

.method private registBroadcastReceivers()V
    .locals 6

    .prologue
    .line 1290
    const/4 v1, 0x0

    .line 1292
    .local v1, intentFilter:Landroid/content/IntentFilter;
    :try_start_0
    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "android.provider.Telephony.WAP_PUSH_RECEIVED"

    const-string v4, "application/vnd.wap.mms-message"

    invoke-direct {v2, v3, v4}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Landroid/content/IntentFilter$MalformedMimeTypeException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1295
    .end local v1           #intentFilter:Landroid/content/IntentFilter;
    .local v2, intentFilter:Landroid/content/IntentFilter;
    :try_start_1
    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mMMSReceiver:Landroid/content/BroadcastReceiver;

    const-string v4, "android.permission.BROADCAST_WAP_PUSH"

    const/4 v5, 0x0

    invoke-virtual {p0, v3, v2, v4, v5}, Lcom/nemustech/regina/ReginaLauncher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/lang/String;Landroid/os/Handler;)Landroid/content/Intent;
    :try_end_1
    .catch Landroid/content/IntentFilter$MalformedMimeTypeException; {:try_start_1 .. :try_end_1} :catch_1

    move-object v1, v2

    .line 1301
    .end local v2           #intentFilter:Landroid/content/IntentFilter;
    .restart local v1       #intentFilter:Landroid/content/IntentFilter;
    :goto_0
    return-void

    .line 1297
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 1299
    .local v0, e:Landroid/content/IntentFilter$MalformedMimeTypeException;
    :goto_1
    invoke-virtual {v0}, Landroid/content/IntentFilter$MalformedMimeTypeException;->printStackTrace()V

    goto :goto_0

    .line 1297
    .end local v0           #e:Landroid/content/IntentFilter$MalformedMimeTypeException;
    .end local v1           #intentFilter:Landroid/content/IntentFilter;
    .restart local v2       #intentFilter:Landroid/content/IntentFilter;
    :catch_1
    move-exception v3

    move-object v0, v3

    move-object v1, v2

    .end local v2           #intentFilter:Landroid/content/IntentFilter;
    .restart local v1       #intentFilter:Landroid/content/IntentFilter;
    goto :goto_1
.end method

.method private registerContentObservers()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 1278
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 1279
    .local v0, resolver:Landroid/content/ContentResolver;
    sget-object v1, Lcom/nemustech/regina/ReginaProvider;->CONTENT_APPWIDGET_RESET_URI:Landroid/net/Uri;

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mWidgetObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

    .line 1282
    const-string v1, "content://mms-sms/"

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mTelephonyObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

    .line 1285
    sget-object v1, Landroid/provider/CallLog$Calls;->CONTENT_URI:Landroid/net/Uri;

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mTelephonyObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

    .line 1287
    return-void
.end method

.method private registerScrollableReceiver()V
    .locals 2

    .prologue
    .line 1263
    new-instance v1, Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

    invoke-direct {v1, p0}, Lmobi/intuitit/android/widget/ScrollableWidgetProvider;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mScrollableWidgetProvider:Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

    .line 1264
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 1265
    .local v0, filter:Landroid/content/IntentFilter;
    const-string v1, "mobi.intuitit.android.hpp.ACTION_SCROLL_WIDGET_START"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1266
    const-string v1, "mobi.intuitit.android.hpp.ACTION_SCROLL_WIDGET_CLOSE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1267
    const-string v1, "mobi.intuitit.android.hpp.ACTION_SCROLL_WIDGET_CLEAR_IMAGE_CACHE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1268
    const-string v1, "mobi.intuitit.android.hpp.ACTION_SCROLL_WIDGET_SELECT_ITEM"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1270
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mScrollableWidgetProvider:Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

    invoke-virtual {p0, v1, v0}, Lcom/nemustech/regina/ReginaLauncher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 1271
    return-void
.end method

.method private requestAppWidgetConfigure(Landroid/content/Intent;)V
    .locals 10
    .parameter "data"

    .prologue
    const/4 v9, -0x1

    const/16 v8, 0x8

    .line 2157
    const-string v5, "appWidgetId"

    invoke-virtual {p1, v5, v9}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    .line 2158
    .local v1, appWidgetId:I
    iput v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mCurrentAppWidgetId:I

    .line 2159
    iget-object v5, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    invoke-virtual {v5, v1}, Landroid/appwidget/AppWidgetManager;->getAppWidgetInfo(I)Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v0

    .line 2163
    .local v0, appWidget:Landroid/appwidget/AppWidgetProviderInfo;
    :try_start_0
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    iget-object v6, v0, Landroid/appwidget/AppWidgetProviderInfo;->provider:Landroid/content/ComponentName;

    const/16 v7, 0x80

    invoke-virtual {v5, v6, v7}, Landroid/content/pm/PackageManager;->getReceiverInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;

    move-result-object v5

    iget-object v3, v5, Landroid/content/pm/ActivityInfo;->metaData:Landroid/os/Bundle;

    .line 2165
    .local v3, metadata:Landroid/os/Bundle;
    if-eqz v3, :cond_0

    .line 2166
    const-string v5, "LauncherMetadata.Requirements.APIVersion"

    invoke-virtual {v3, v5}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 2168
    const-string v5, "LauncherMetadata.Requirements.APIVersion"

    invoke-virtual {v3, v5}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v4

    .line 2169
    .local v4, requiredApiVersion:I
    const/4 v5, 0x2

    if-le v4, v5, :cond_0

    .line 2171
    const/16 v5, 0x8

    const/4 v6, 0x0

    invoke-virtual {p0, v5, v6, p1}, Lcom/nemustech/regina/ReginaLauncher;->onActivityResult(IILandroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 2196
    .end local v3           #metadata:Landroid/os/Bundle;
    .end local v4           #requiredApiVersion:I
    :goto_0
    return-void

    .line 2179
    :catch_0
    move-exception v5

    .line 2185
    :cond_0
    iget-object v5, v0, Landroid/appwidget/AppWidgetProviderInfo;->configure:Landroid/content/ComponentName;

    if-eqz v5, :cond_1

    .line 2187
    new-instance v2, Landroid/content/Intent;

    const-string v5, "android.appwidget.action.APPWIDGET_CONFIGURE"

    invoke-direct {v2, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2188
    .local v2, intent:Landroid/content/Intent;
    iget-object v5, v0, Landroid/appwidget/AppWidgetProviderInfo;->configure:Landroid/content/ComponentName;

    invoke-virtual {v2, v5}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 2189
    const-string v5, "appWidgetId"

    invoke-virtual {v2, v5, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 2191
    invoke-virtual {p0, v2, v8}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 2194
    .end local v2           #intent:Landroid/content/Intent;
    :cond_1
    invoke-virtual {p0, v8, v9, p1}, Lcom/nemustech/regina/ReginaLauncher;->onActivityResult(IILandroid/content/Intent;)V

    goto :goto_0
.end method

.method private requestAppWidgetCreate(Landroid/content/Intent;)V
    .locals 3
    .parameter "data"

    .prologue
    .line 2199
    const-string v1, "appWidgetId"

    const/4 v2, -0x1

    invoke-virtual {p1, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 2200
    .local v0, appWidgetId:I
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->executeAddAndroidWidget(I)V

    .line 2201
    return-void
.end method

.method private resetRegina()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 2764
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    if-eqz v0, :cond_0

    .line 2765
    const-string v0, "ReginaLauncher"

    const-string v1, "previous apploader and bitmapcache loader is stopped"

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2766
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppInfoManager;->abortLoader()V

    .line 2767
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    if-eqz v0, :cond_0

    .line 2768
    const-string v0, "ReginaLauncher"

    const-string v1, "previous Element loader is stopped"

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2769
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 2773
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    if-eqz v0, :cond_1

    .line 2774
    const-string v0, "ReginaLauncher"

    const-string v1, "previous mWorld is stopped"

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2775
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->pause()V

    .line 2776
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->stop()V

    .line 2778
    :cond_1
    return-void
.end method

.method private saveWallpaper(Landroid/graphics/Bitmap;Ljava/lang/String;)Ljava/lang/String;
    .locals 9
    .parameter "bitmap"
    .parameter "filenamePostfix"

    .prologue
    const/4 v8, 0x0

    .line 944
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getFilesDir()Ljava/io/File;

    move-result-object v5

    .line 946
    .local v5, rgDataPath:Ljava/io/File;
    const/4 v1, 0x0

    .line 947
    .local v1, fOut:Ljava/io/OutputStream;
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaPreference;->getWorkpaceWallpaperPrefix()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, ".png"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 948
    .local v4, fileName:Ljava/lang/String;
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v5, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 950
    .local v3, file:Ljava/io/File;
    :try_start_0
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, v3}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    .line 951
    .end local v1           #fOut:Ljava/io/OutputStream;
    .local v2, fOut:Ljava/io/OutputStream;
    :try_start_1
    sget-object v6, Landroid/graphics/Bitmap$CompressFormat;->PNG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v7, 0x55

    invoke-virtual {p1, v6, v7, v2}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 952
    invoke-virtual {v2}, Ljava/io/OutputStream;->flush()V

    .line 953
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

    .line 965
    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    move-object v1, v2

    .end local v2           #fOut:Ljava/io/OutputStream;
    .restart local v1       #fOut:Ljava/io/OutputStream;
    :goto_0
    return-object v6

    .line 957
    :catch_0
    move-exception v6

    move-object v0, v6

    .local v0, e:Ljava/io/FileNotFoundException;
    :goto_1
    move-object v6, v8

    .line 959
    goto :goto_0

    .line 960
    .end local v0           #e:Ljava/io/FileNotFoundException;
    :catch_1
    move-exception v6

    move-object v0, v6

    .local v0, e:Ljava/io/IOException;
    :goto_2
    move-object v6, v8

    .line 962
    goto :goto_0

    .line 960
    .end local v0           #e:Ljava/io/IOException;
    .end local v1           #fOut:Ljava/io/OutputStream;
    .restart local v2       #fOut:Ljava/io/OutputStream;
    :catch_2
    move-exception v6

    move-object v0, v6

    move-object v1, v2

    .end local v2           #fOut:Ljava/io/OutputStream;
    .restart local v1       #fOut:Ljava/io/OutputStream;
    goto :goto_2

    .line 957
    .end local v1           #fOut:Ljava/io/OutputStream;
    .restart local v2       #fOut:Ljava/io/OutputStream;
    :catch_3
    move-exception v6

    move-object v0, v6

    move-object v1, v2

    .end local v2           #fOut:Ljava/io/OutputStream;
    .restart local v1       #fOut:Ljava/io/OutputStream;
    goto :goto_1
.end method

.method private unregisterContentObservers()V
    .locals 2

    .prologue
    .line 1304
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 1305
    .local v0, resolver:Landroid/content/ContentResolver;
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mTelephonyObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V

    .line 1306
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWidgetObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V

    .line 1307
    return-void
.end method

.method private unregisterScrollableReceiver()V
    .locals 1

    .prologue
    .line 1274
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mScrollableWidgetProvider:Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 1275
    return-void
.end method

.method private writeAndroidWallpaper(Landroid/graphics/Bitmap;)V
    .locals 6
    .parameter "bitmap"

    .prologue
    .line 923
    new-instance v0, Ljava/io/File;

    const-string v4, "/data/data/com.android.settings/files/wallpaper.jpg"

    invoke-direct {v0, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 924
    .local v0, androidWallpaper:Ljava/io/File;
    const/4 v2, 0x0

    .line 927
    .local v2, fOut:Ljava/io/OutputStream;
    :try_start_0
    new-instance v3, Ljava/io/FileOutputStream;

    invoke-direct {v3, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    .line 928
    .end local v2           #fOut:Ljava/io/OutputStream;
    .local v3, fOut:Ljava/io/OutputStream;
    :try_start_1
    sget-object v4, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v5, 0x64

    invoke-virtual {p1, v4, v5, v3}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 929
    invoke-virtual {v3}, Ljava/io/OutputStream;->flush()V

    .line 930
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

    move-object v2, v3

    .line 940
    .end local v3           #fOut:Ljava/io/OutputStream;
    .restart local v2       #fOut:Ljava/io/OutputStream;
    :goto_0
    return-void

    .line 931
    :catch_0
    move-exception v4

    move-object v1, v4

    .line 933
    .local v1, e:Ljava/io/FileNotFoundException;
    :goto_1
    invoke-virtual {v1}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_0

    .line 935
    .end local v1           #e:Ljava/io/FileNotFoundException;
    :catch_1
    move-exception v4

    move-object v1, v4

    .line 937
    .local v1, e:Ljava/io/IOException;
    :goto_2
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    .line 935
    .end local v1           #e:Ljava/io/IOException;
    .end local v2           #fOut:Ljava/io/OutputStream;
    .restart local v3       #fOut:Ljava/io/OutputStream;
    :catch_2
    move-exception v4

    move-object v1, v4

    move-object v2, v3

    .end local v3           #fOut:Ljava/io/OutputStream;
    .restart local v2       #fOut:Ljava/io/OutputStream;
    goto :goto_2

    .line 931
    .end local v2           #fOut:Ljava/io/OutputStream;
    .restart local v3       #fOut:Ljava/io/OutputStream;
    :catch_3
    move-exception v4

    move-object v1, v4

    move-object v2, v3

    .end local v3           #fOut:Ljava/io/OutputStream;
    .restart local v2       #fOut:Ljava/io/OutputStream;
    goto :goto_1
.end method


# virtual methods
.method public abortElementLoader()V
    .locals 1

    .prologue
    .line 1532
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1533
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->stop()V

    .line 1535
    :cond_0
    return-void
.end method

.method public addElementToDatabase(Lcom/nemustech/regina/Element;)V
    .locals 26
    .parameter "e"

    .prologue
    .line 2204
    new-instance v20, Landroid/content/ContentValues;

    invoke-direct/range {v20 .. v20}, Landroid/content/ContentValues;-><init>()V

    .line 2205
    .local v20, values:Landroid/content/ContentValues;
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    .line 2206
    .local v5, cr:Landroid/content/ContentResolver;
    const/4 v15, 0x0

    .line 2209
    .local v15, notify:Z
    const-string v23, "itemType"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getItemType()I

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2211
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getWorkspaceUID()I

    move-result v19

    .line 2212
    .local v19, uid:I
    const/16 v23, -0x1

    move/from16 v0, v19

    move/from16 v1, v23

    if-eq v0, v1, :cond_5

    .line 2213
    const-string v23, "uid"

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2229
    :goto_0
    const-string v23, "ReginaLauncher"

    new-instance v24, Ljava/lang/StringBuilder;

    invoke-direct/range {v24 .. v24}, Ljava/lang/StringBuilder;-><init>()V

    const-string v25, "addElementToDatabase() workspace index="

    invoke-virtual/range {v24 .. v25}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v24

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v25

    invoke-virtual/range {v24 .. v25}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v24

    sget-boolean v25, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static/range {v23 .. v25}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2230
    const-string v23, "elementX"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getX()F

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2231
    const-string v23, "elementY"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getY()F

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2232
    const-string v23, "elementZ"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getZ()F

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2233
    const-string v23, "elementWidth2D"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getWidth2D()I

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2234
    const-string v23, "elementHeight2D"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getHeight2D()I

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2235
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getPackageName()Ljava/lang/String;

    move-result-object v23

    if-eqz v23, :cond_0

    const-string v23, "packageName"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getPackageName()Ljava/lang/String;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 2236
    :cond_0
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getClassName()Ljava/lang/String;

    move-result-object v23

    if-eqz v23, :cond_1

    const-string v23, "className"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getClassName()Ljava/lang/String;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 2237
    :cond_1
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getPackagePath()Ljava/lang/String;

    move-result-object v23

    if-eqz v23, :cond_2

    const-string v23, "packagePath"

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getPackagePath()Ljava/lang/String;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 2240
    :cond_2
    move-object/from16 v0, p1

    instance-of v0, v0, Lcom/nemustech/regina/ElementShortcut;

    move/from16 v23, v0

    if-eqz v23, :cond_a

    .line 2241
    move-object/from16 v0, p1

    check-cast v0, Lcom/nemustech/regina/ElementShortcut;

    move-object v7, v0

    .line 2243
    .local v7, es:Lcom/nemustech/regina/ElementShortcut;
    const-string v23, "title"

    invoke-virtual {v7}, Lcom/nemustech/regina/ElementShortcut;->getTitle()Ljava/lang/String;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 2245
    invoke-virtual {v7}, Lcom/nemustech/regina/ElementShortcut;->getIntent()Landroid/content/Intent;

    move-result-object v13

    .line 2246
    .local v13, intent:Landroid/content/Intent;
    const-string v23, "intent"

    if-eqz v13, :cond_8

    const/16 v24, 0x0

    move-object v0, v13

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/content/Intent;->toUri(I)Ljava/lang/String;

    move-result-object v24

    :goto_1
    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 2248
    invoke-virtual {v7}, Lcom/nemustech/regina/ElementShortcut;->getIsCustomIcon()Z

    move-result v23

    if-eqz v23, :cond_9

    .line 2249
    const-string v23, "iconType"

    const/16 v24, 0x1

    invoke-static/range {v24 .. v24}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2252
    invoke-virtual {v7}, Lcom/nemustech/regina/ElementShortcut;->getIcon()Landroid/graphics/drawable/Drawable;

    move-result-object v9

    .line 2253
    .local v9, icon:Landroid/graphics/drawable/Drawable;
    check-cast v9, Landroid/graphics/drawable/BitmapDrawable;

    .end local v9           #icon:Landroid/graphics/drawable/Drawable;
    invoke-virtual {v9}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v4

    .line 2254
    .local v4, bmp:Landroid/graphics/Bitmap;
    if-eqz v4, :cond_3

    .line 2257
    invoke-virtual {v4}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v23

    invoke-virtual {v4}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v24

    mul-int v23, v23, v24

    mul-int/lit8 v18, v23, 0x4

    .line 2258
    .local v18, size:I
    new-instance v16, Ljava/io/ByteArrayOutputStream;

    move-object/from16 v0, v16

    move/from16 v1, v18

    invoke-direct {v0, v1}, Ljava/io/ByteArrayOutputStream;-><init>(I)V

    .line 2260
    .local v16, out:Ljava/io/ByteArrayOutputStream;
    :try_start_0
    sget-object v23, Landroid/graphics/Bitmap$CompressFormat;->PNG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v24, 0x64

    move-object v0, v4

    move-object/from16 v1, v23

    move/from16 v2, v24

    move-object/from16 v3, v16

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 2261
    invoke-virtual/range {v16 .. v16}, Ljava/io/ByteArrayOutputStream;->flush()V

    .line 2262
    invoke-virtual/range {v16 .. v16}, Ljava/io/ByteArrayOutputStream;->close()V

    .line 2263
    const-string v23, "icon"

    invoke-virtual/range {v16 .. v16}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;[B)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 2287
    .end local v4           #bmp:Landroid/graphics/Bitmap;
    .end local v7           #es:Lcom/nemustech/regina/ElementShortcut;
    .end local v13           #intent:Landroid/content/Intent;
    .end local v16           #out:Ljava/io/ByteArrayOutputStream;
    .end local v18           #size:I
    :cond_3
    :goto_2
    if-eqz v15, :cond_b

    sget-object v23, Lcom/nemustech/regina/ReginaSettings$Favorites;->CONTENT_URI:Landroid/net/Uri;

    :goto_3
    move-object v0, v5

    move-object/from16 v1, v23

    move-object/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    move-result-object v17

    .line 2289
    .local v17, result:Landroid/net/Uri;
    if-eqz v17, :cond_4

    .line 2290
    invoke-virtual/range {v17 .. v17}, Landroid/net/Uri;->getPathSegments()Ljava/util/List;

    move-result-object v23

    const/16 v24, 0x1

    invoke-interface/range {v23 .. v24}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/String;

    invoke-static/range {p0 .. p0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v23

    move/from16 v0, v23

    int-to-long v0, v0

    move-wide v11, v0

    .line 2291
    .local v11, id:J
    move-object/from16 v0, p1

    move-wide v1, v11

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->setElementId(J)V

    .line 2293
    .end local v11           #id:J
    :cond_4
    return-void

    .line 2215
    .end local v17           #result:Landroid/net/Uri;
    .restart local p0
    :cond_5
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v21

    .line 2216
    .local v21, wsIndex:I
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getWorkspaceType()I

    move-result v22

    .line 2217
    .local v22, wsType:I
    const/4 v14, 0x0

    .line 2218
    .local v14, isSecret:Z
    if-nez v22, :cond_7

    .line 2219
    const/4 v14, 0x0

    .line 2224
    :cond_6
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v21

    move v2, v14

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceUID(IZ)I

    move-result v19

    .line 2225
    const-string v23, "uid"

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    goto/16 :goto_0

    .line 2220
    :cond_7
    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_6

    .line 2221
    const/4 v14, 0x1

    goto :goto_4

    .line 2246
    .end local v14           #isSecret:Z
    .end local v21           #wsIndex:I
    .end local v22           #wsType:I
    .restart local v7       #es:Lcom/nemustech/regina/ElementShortcut;
    .restart local v13       #intent:Landroid/content/Intent;
    :cond_8
    const/16 v24, 0x0

    goto/16 :goto_1

    .line 2264
    .restart local v4       #bmp:Landroid/graphics/Bitmap;
    .restart local v16       #out:Ljava/io/ByteArrayOutputStream;
    .restart local v18       #size:I
    :catch_0
    move-exception v23

    move-object/from16 v8, v23

    .line 2265
    .local v8, exception:Ljava/io/IOException;
    const-string v23, "Favorite"

    const-string v24, "Could not write icon"

    invoke-static/range {v23 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2

    .line 2269
    .end local v4           #bmp:Landroid/graphics/Bitmap;
    .end local v8           #exception:Ljava/io/IOException;
    .end local v16           #out:Ljava/io/ByteArrayOutputStream;
    .end local v18           #size:I
    :cond_9
    const-string v23, "iconType"

    const/16 v24, 0x0

    invoke-static/range {v24 .. v24}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2272
    invoke-virtual {v7}, Lcom/nemustech/regina/ElementShortcut;->getIconResource()Landroid/content/Intent$ShortcutIconResource;

    move-result-object v10

    .line 2273
    .local v10, iconResource:Landroid/content/Intent$ShortcutIconResource;
    if-eqz v10, :cond_3

    .line 2274
    const-string v23, "iconPackage"

    move-object v0, v10

    iget-object v0, v0, Landroid/content/Intent$ShortcutIconResource;->packageName:Ljava/lang/String;

    move-object/from16 v24, v0

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 2276
    const-string v23, "iconResource"

    move-object v0, v10

    iget-object v0, v0, Landroid/content/Intent$ShortcutIconResource;->resourceName:Ljava/lang/String;

    move-object/from16 v24, v0

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_2

    .line 2280
    .end local v7           #es:Lcom/nemustech/regina/ElementShortcut;
    .end local v10           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .end local v13           #intent:Landroid/content/Intent;
    :cond_a
    move-object/from16 v0, p1

    instance-of v0, v0, Lcom/nemustech/regina/ElementReginaWidget;

    move/from16 v23, v0

    if-nez v23, :cond_3

    .line 2282
    move-object/from16 v0, p1

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v23, v0

    if-eqz v23, :cond_3

    .line 2283
    move-object/from16 v0, p1

    check-cast v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move-object v6, v0

    .line 2284
    .local v6, ea:Lcom/nemustech/regina/ElementAndroidWidget;
    const-string v23, "appWidgetId"

    invoke-virtual {v6}, Lcom/nemustech/regina/ElementAndroidWidget;->getWidgetId()I

    move-result v24

    invoke-static/range {v24 .. v24}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v20

    move-object/from16 v1, v23

    move-object/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    goto/16 :goto_2

    .line 2287
    .end local v6           #ea:Lcom/nemustech/regina/ElementAndroidWidget;
    :cond_b
    sget-object v23, Lcom/nemustech/regina/ReginaSettings$Favorites;->CONTENT_URI_NO_NOTIFICATION:Landroid/net/Uri;

    goto/16 :goto_3
.end method

.method public appListTransition()V
    .locals 2

    .prologue
    .line 756
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    if-nez v0, :cond_1

    .line 757
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAppList;->animateToAppList()V

    .line 762
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->switchBandAppsPanelImg(I)V

    .line 763
    return-void

    .line 759
    :cond_1
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    .line 760
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAppList;->returnToWorkspace()V

    goto :goto_0
.end method

.method public cacheWorkspaceThumb(Z)V
    .locals 2
    .parameter "isFirstLaunching"

    .prologue
    .line 2692
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    if-eqz v0, :cond_0

    .line 2693
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;

    invoke-direct {v1, p0, p1}, Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;-><init>(Lcom/nemustech/regina/ReginaLauncher;Z)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 2694
    :cond_0
    return-void
.end method

.method public checkInitFlag()Z
    .locals 5

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 1483
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->getInitializationStatus()I

    move-result v0

    .line 1484
    .local v0, initializationStatus:I
    if-eq v0, v3, :cond_0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    .line 1485
    :cond_0
    const-string v1, "ReginaLauncher"

    const-string v2, "initializaion flag is success"

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1487
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ReginaPreference;->setInitializationStatus(I)V

    .line 1488
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    move v1, v3

    .line 1498
    :goto_0
    return v1

    .line 1492
    :cond_1
    const-string v1, "ReginaLauncher"

    const-string v2, "could not start normally."

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1497
    const/16 v1, 0x8

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    move v1, v4

    .line 1498
    goto :goto_0
.end method

.method public convertViewModeToString(I)Ljava/lang/String;
    .locals 1
    .parameter "viewMode"

    .prologue
    .line 217
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mViewMode:I

    packed-switch v0, :pswitch_data_0

    .line 231
    :pswitch_0
    const-string v0, "invalid view mode"

    :goto_0
    return-object v0

    .line 219
    :pswitch_1
    const-string v0, "VIEW_WORKSPACE"

    goto :goto_0

    .line 221
    :pswitch_2
    const-string v0, "VIEW_WORKSPACE_SWITCHER"

    goto :goto_0

    .line 223
    :pswitch_3
    const-string v0, "VIEW_WORKSPACE_EDIT"

    goto :goto_0

    .line 225
    :pswitch_4
    const-string v0, "VIEW_APPLICATION_LIST"

    goto :goto_0

    .line 227
    :pswitch_5
    const-string v0, "VIEW_WORKSPACE_BROWSER"

    goto :goto_0

    .line 229
    :pswitch_6
    const-string v0, "VIEW_WORKSPACE_SCROLL_BY_CTRL_BTN"

    goto :goto_0

    .line 217
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method public declared-synchronized decreaseClockWidgetCount()V
    .locals 2

    .prologue
    .line 453
    monitor-enter p0

    :try_start_0
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I

    .line 454
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I

    if-gtz v0, :cond_0

    .line 455
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->stopWeatherService()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 457
    :cond_0
    monitor-exit p0

    return-void

    .line 453
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public deleteElementFromDatabase(Lcom/nemustech/regina/Element;)V
    .locals 7
    .parameter "e"

    .prologue
    const/4 v6, 0x0

    .line 2358
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->pause()V

    .line 2359
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2360
    .local v0, cr:Landroid/content/ContentResolver;
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v3

    const/4 v5, 0x0

    invoke-static {v3, v4, v5}, Lcom/nemustech/regina/ReginaSettings$Favorites;->getContentUri(JZ)Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v0, v3, v6, v6}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v1

    .line 2361
    .local v1, deleted:I
    if-gtz v1, :cond_0

    .line 2362
    const-string v3, "ReginaLauncher"

    const-string v4, "deleteElementFromDatabase() did not be deleted !!!"

    const/4 v5, 0x1

    invoke-static {v3, v4, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2365
    :cond_0
    instance-of v3, p1, Lcom/nemustech/regina/widgets/clock/ClockWidget;

    if-eqz v3, :cond_2

    .line 2366
    const/4 v2, 0x0

    .line 2367
    .local v2, isRemoved:Z
    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetCityData(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_1

    .line 2368
    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetData(Ljava/lang/String;)V

    .line 2369
    const/4 v2, 0x1

    .line 2371
    :cond_1
    if-eqz v2, :cond_2

    .line 2372
    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2374
    .end local v2           #isRemoved:Z
    :cond_2
    return-void
.end method

.method public deleteElementFromDatabaseById(J)V
    .locals 5
    .parameter "elementId"

    .prologue
    const/4 v3, 0x0

    .line 2385
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2386
    .local v0, cr:Landroid/content/ContentResolver;
    const/4 v2, 0x0

    invoke-static {p1, p2, v2}, Lcom/nemustech/regina/ReginaSettings$Favorites;->getContentUri(JZ)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2, v3, v3}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v1

    .line 2387
    .local v1, deleted:I
    if-gtz v1, :cond_0

    .line 2388
    const-string v2, "ReginaLauncher"

    const-string v3, "deleteElementFromDatabase() did not be deleted !!!"

    const/4 v4, 0x1

    invoke-static {v2, v3, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2390
    :cond_0
    return-void
.end method

.method public deleteElementsInWorkspaceFromDatabase(I)V
    .locals 5
    .parameter "workspaceUID"

    .prologue
    .line 2377
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2378
    .local v0, cr:Landroid/content/ContentResolver;
    sget-object v2, Lcom/nemustech/regina/ReginaSettings$Favorites;->CONTENT_URI:Landroid/net/Uri;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "uid="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v0, v2, v3, v4}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v1

    .line 2379
    .local v1, deleted:I
    if-gtz v1, :cond_0

    .line 2380
    const-string v2, "ReginaLauncher"

    const-string v3, "deleteElementFromDatabase() did not be deleted !!!"

    const/4 v4, 0x1

    invoke-static {v2, v3, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2382
    :cond_0
    return-void
.end method

.method public dismissProgressDialog()V
    .locals 3

    .prologue
    .line 737
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mProgressDialog:Landroid/app/Dialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mProgressDialog:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 738
    const-string v0, "ReginaLauncher"

    const-string v1, "removing Dialog"

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 739
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mProgressDialog:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    .line 743
    :goto_0
    return-void

    .line 741
    :cond_0
    const-string v0, "ReginaLauncher"

    const-string v1, "tried to remove Dialog, but ProgressDialog is not showing now"

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 3
    .parameter "event"

    .prologue
    const/4 v2, 0x1

    .line 597
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    .line 598
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    .line 672
    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/app/Activity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    :goto_1
    return v0

    :sswitch_0
    move v0, v2

    .line 600
    goto :goto_1

    :sswitch_1
    move v0, v2

    .line 602
    goto :goto_1

    :sswitch_2
    move v0, v2

    .line 604
    goto :goto_1

    .line 608
    :cond_1
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-ne v0, v2, :cond_0

    .line 609
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    sparse-switch v0, :sswitch_data_1

    goto :goto_0

    :sswitch_3
    move v0, v2

    .line 637
    goto :goto_1

    .line 611
    :sswitch_4
    invoke-virtual {p1}, Landroid/view/KeyEvent;->isCanceled()Z

    move-result v0

    if-nez v0, :cond_3

    .line 612
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v0

    if-ne v0, v2, :cond_2

    .line 613
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->hideWorkspaceNameView()V

    .line 614
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    sparse-switch v0, :sswitch_data_2

    .line 624
    :cond_2
    :goto_2
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_3
    :goto_3
    :pswitch_0
    move v0, v2

    .line 635
    goto :goto_1

    .line 616
    :sswitch_5
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->hideSecretWorkspace()V

    goto :goto_2

    .line 619
    :sswitch_6
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->appListTransition()V

    goto :goto_2

    .line 626
    :pswitch_1
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->animateToWorkspace()V

    goto :goto_3

    .line 629
    :pswitch_2
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementLocator;->animateToWorkspaceSwitcherFrom(I)V

    goto :goto_3

    .line 632
    :pswitch_3
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->appListTransition()V

    goto :goto_3

    .line 639
    :sswitch_7
    invoke-virtual {p1}, Landroid/view/KeyEvent;->isCanceled()Z

    move-result v0

    if-nez v0, :cond_0

    .line 640
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    packed-switch v0, :pswitch_data_1

    :pswitch_4
    goto :goto_0

    :pswitch_5
    move v0, v2

    .line 644
    goto :goto_1

    .line 665
    :sswitch_8
    invoke-virtual {p1}, Landroid/view/KeyEvent;->isCanceled()Z

    move-result v0

    if-nez v0, :cond_0

    .line 666
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->onSearchRequested()Z

    goto :goto_0

    .line 598
    nop

    :sswitch_data_0
    .sparse-switch
        0x3 -> :sswitch_1
        0x4 -> :sswitch_0
        0x54 -> :sswitch_2
    .end sparse-switch

    .line 609
    :sswitch_data_1
    .sparse-switch
        0x3 -> :sswitch_3
        0x4 -> :sswitch_4
        0x52 -> :sswitch_7
        0x54 -> :sswitch_8
    .end sparse-switch

    .line 614
    :sswitch_data_2
    .sparse-switch
        0x0 -> :sswitch_5
        0x4 -> :sswitch_6
    .end sparse-switch

    .line 624
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch

    .line 640
    :pswitch_data_1
    .packed-switch 0x1
        :pswitch_5
        :pswitch_4
        :pswitch_5
        :pswitch_5
    .end packed-switch
.end method

.method public executeAddAndroidWidget(I)V
    .locals 4
    .parameter "appWidgetId"

    .prologue
    .line 1236
    const-string v1, "ReginaLauncher"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "executeAddAndroidWidget() widgetId="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1238
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementMaker;->createAndroidWidget(I)Lcom/nemustech/regina/Element;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/ElementAndroidWidget;

    .line 1239
    .local v0, wgElement:Lcom/nemustech/regina/ElementAndroidWidget;
    if-nez v0, :cond_1

    .line 1240
    const-string v1, "Sorry, This widget can not available."

    invoke-static {p0, v1}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    .line 1247
    :cond_0
    :goto_0
    return-void

    .line 1242
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1, v0}, Lcom/nemustech/regina/ElementLocator;->arrange(Lcom/nemustech/regina/Element;)Z

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    .line 1243
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->addElementToDatabase(Lcom/nemustech/regina/Element;)V

    .line 1244
    invoke-direct {p0, v0, p1}, Lcom/nemustech/regina/ReginaLauncher;->notifyReadyToAppWidget(Lcom/nemustech/regina/ElementAndroidWidget;I)V

    goto :goto_0
.end method

.method public executeAddFolder()V
    .locals 2

    .prologue
    .line 1214
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementMaker;->createFolder()Lcom/nemustech/regina/Element;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/ElementFolder;

    .line 1215
    .local v0, folder:Lcom/nemustech/regina/ElementFolder;
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementFolder;->setWorkspace(Lcom/nemustech/regina/RGWorkspace;)V

    .line 1216
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1, v0}, Lcom/nemustech/regina/ElementLocator;->arrange(Lcom/nemustech/regina/Element;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1219
    :cond_0
    return-void
.end method

.method public executeAddReginaWidget(Lcom/nemustech/regina/widgets/ReginaWidgetID;)V
    .locals 7
    .parameter "widgetID"

    .prologue
    .line 1224
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    const/4 v2, 0x0

    const/4 v3, -0x1

    const-wide/16 v4, -0x1

    move-object v1, p1

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/ElementMaker;->createReginaWidget(Lcom/nemustech/regina/widgets/ReginaWidgetID;Landroid/graphics/Rect;IJ)Lcom/nemustech/regina/Element;

    move-result-object v6

    check-cast v6, Lcom/nemustech/regina/ElementReginaWidget;

    .line 1225
    .local v6, wgElement:Lcom/nemustech/regina/ElementReginaWidget;
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/ElementLocator;->arrange(Lcom/nemustech/regina/Element;)Z

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 1226
    invoke-virtual {p0, v6}, Lcom/nemustech/regina/ReginaLauncher;->addElementToDatabase(Lcom/nemustech/regina/Element;)V

    .line 1228
    :cond_0
    sget-object v0, Lcom/nemustech/regina/widgets/ReginaWidgetID;->TASKS:Lcom/nemustech/regina/widgets/ReginaWidgetID;

    invoke-virtual {p1, v0}, Lcom/nemustech/regina/widgets/ReginaWidgetID;->isEqual(Lcom/nemustech/regina/widgets/ReginaWidgetID;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1229
    const-string v0, "com.nemustech.regina.apps.tasks"

    const-string v1, "com.nemustech.regina.apps.tasks.TaskApp"

    invoke-static {p0, v0, v1}, Lcom/nemustech/regina/RUtils;->isInstalledApp(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 1230
    const/16 v0, 0x9

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    .line 1233
    :cond_1
    return-void
.end method

.method public executeFolderElement(Lcom/nemustech/regina/ElementFolder;)V
    .locals 3
    .parameter "element"

    .prologue
    .line 1474
    const-string v0, "ReginaLauncher"

    const-string v1, "folder touched"

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1475
    return-void
.end method

.method public executePickApps()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 1192
    const-string v0, "ReginaLauncher"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "[executePickApps()] mElementIsAdding="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1193
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShowCalendarDlg:Z

    if-nez v0, :cond_0

    .line 1194
    iput-boolean v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShowCalendarDlg:Z

    .line 1195
    invoke-virtual {p0, v3}, Lcom/nemustech/regina/ReginaLauncher;->setElementAdding(Z)V

    .line 1196
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelRequester:Lcom/nemustech/regina/SelectionRequester;

    invoke-virtual {v0}, Lcom/nemustech/regina/SelectionRequester;->requestPickAppIntent()Landroid/content/Intent;

    move-result-object v0

    const/16 v1, 0xa

    invoke-virtual {p0, v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1198
    :cond_0
    return-void
.end method

.method public executePickClockApps()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 1201
    const-string v0, "ReginaLauncher"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "[executePickApps()] mElementIsAdding="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1202
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShowClockDlg:Z

    if-nez v0, :cond_0

    .line 1203
    iput-boolean v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShowClockDlg:Z

    .line 1204
    invoke-virtual {p0, v3}, Lcom/nemustech/regina/ReginaLauncher;->setElementAdding(Z)V

    .line 1205
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelRequester:Lcom/nemustech/regina/SelectionRequester;

    invoke-virtual {v0}, Lcom/nemustech/regina/SelectionRequester;->requestPickClockAppIntent()Landroid/content/Intent;

    move-result-object v0

    const/16 v1, 0xb

    invoke-virtual {p0, v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1207
    :cond_0
    return-void
.end method

.method public executePickShortcut()V
    .locals 2

    .prologue
    .line 1187
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelRequester:Lcom/nemustech/regina/SelectionRequester;

    invoke-virtual {v0}, Lcom/nemustech/regina/SelectionRequester;->requestPickShortcutIntent()Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1188
    return-void
.end method

.method public executePickWidget()V
    .locals 2

    .prologue
    .line 1210
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/DialogCare;->popDialog(I)V

    .line 1211
    return-void
.end method

.method public executeShortcutElement(Lcom/nemustech/regina/ElementShortcut;)V
    .locals 2
    .parameter "element"

    .prologue
    .line 1329
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShortCutExpansion:Z

    if-eqz v0, :cond_0

    .line 1330
    invoke-virtual {p1}, Lcom/nemustech/regina/ElementShortcut;->getInternalObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {p1}, Lcom/nemustech/regina/ElementShortcut;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->expandShortcut(Lcom/nemustech/tiffany/world/TFPanel;Landroid/content/Intent;)V

    .line 1347
    :goto_0
    return-void

    .line 1332
    :cond_0
    invoke-virtual {p1}, Lcom/nemustech/regina/ElementShortcut;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->startActivitySafely(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public expandShortcut(Lcom/nemustech/tiffany/world/TFPanel;Landroid/content/Intent;)V
    .locals 10
    .parameter "panel"
    .parameter "intent"

    .prologue
    const/4 v4, 0x0

    .line 1351
    :try_start_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1352
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1353
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1355
    :cond_0
    move-object v9, p1

    .line 1356
    .local v9, originalPanel:Lcom/nemustech/tiffany/world/TFPanel;
    invoke-virtual {v9}, Lcom/nemustech/tiffany/world/TFPanel;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFPanel;

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1357
    const/4 v0, 0x3

    new-array v8, v0, [F

    .line 1358
    .local v8, location:[F
    invoke-virtual {v9, v8}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation([F)V

    .line 1359
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    aget v1, v8, v1

    const/4 v2, 0x1

    aget v2, v8, v2

    const/4 v3, 0x2

    aget v3, v8, v3

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1360
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1361
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1362
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 1364
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mCorrectionRatio:F

    cmpg-float v0, v0, v4

    if-gez v0, :cond_1

    .line 1365
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    const/4 v1, 0x0

    const/high16 v2, 0x3fc0

    invoke-static {p0, v0, v1, v2}, Lcom/nemustech/regina/RUtils;->calcCorrectionRatio(Landroid/content/Context;Lcom/nemustech/tiffany/world/TFWorld;FF)F

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mCorrectionRatio:F

    .line 1368
    :cond_1
    new-instance v7, Lcom/nemustech/regina/ReginaLauncher$4;

    invoke-direct {v7, p0, p2}, Lcom/nemustech/regina/ReginaLauncher$4;-><init>(Lcom/nemustech/regina/ReginaLauncher;Landroid/content/Intent;)V

    .line 1377
    .local v7, effectFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1378
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1379
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mShortCutPopAnimationPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    aget v1, v8, v1

    iget v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mCorrectionRatio:F

    mul-float/2addr v1, v2

    const/4 v2, 0x1

    aget v2, v8, v2

    iget v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mCorrectionRatio:F

    mul-float/2addr v2, v3

    const/high16 v3, 0x3fc0

    const-wide/16 v4, 0x64

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPanel;->move(FFFJ)V
    :try_end_0
    .catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1385
    .end local v7           #effectFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;
    .end local v8           #location:[F
    .end local v9           #originalPanel:Lcom/nemustech/tiffany/world/TFPanel;
    :goto_0
    return-void

    .line 1382
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 1383
    .local v6, e:Ljava/lang/CloneNotSupportedException;
    invoke-virtual {v6}, Ljava/lang/CloneNotSupportedException;->printStackTrace()V

    goto :goto_0
.end method

.method public getAppInfoManager()Lcom/nemustech/regina/AppInfoManager;
    .locals 1

    .prologue
    .line 733
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    return-object v0
.end method

.method public getAppWidgetHost()Landroid/appwidget/AppWidgetHost;
    .locals 1

    .prologue
    .line 1103
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    return-object v0
.end method

.method public getAppWidgetManager()Landroid/appwidget/AppWidgetManager;
    .locals 1

    .prologue
    .line 1099
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    return-object v0
.end method

.method public getClockWidgetCount()I
    .locals 1

    .prologue
    .line 2402
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I

    return v0
.end method

.method public getElementAppList()Lcom/nemustech/regina/ElementAppList;
    .locals 1

    .prologue
    .line 752
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    return-object v0
.end method

.method public getElementLocator()Lcom/nemustech/regina/ElementLocator;
    .locals 2

    .prologue
    .line 1074
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    if-nez v0, :cond_0

    .line 1075
    const-string v0, "ReginaLauncher"

    const-string v1, "You can\'t get element locater at this time"

    invoke-static {v0, v1}, Lcom/nemustech/regina/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1077
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    return-object v0
.end method

.method public getElementMaker()Lcom/nemustech/regina/ElementMaker;
    .locals 1

    .prologue
    .line 1081
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    return-object v0
.end method

.method public getInterceptView()Lcom/nemustech/regina/Intercepter;
    .locals 1

    .prologue
    .line 1090
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    return-object v0
.end method

.method public getIntercepter()Lcom/nemustech/regina/Intercepter;
    .locals 1

    .prologue
    .line 720
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    return-object v0
.end method

.method public getOneByOneBitmap()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 716
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mOneByOneBitmap:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method public getReginaPref()Lcom/nemustech/regina/ReginaPreference;
    .locals 1

    .prologue
    .line 1094
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    return-object v0
.end method

.method public getRowNumFromDatabase(Lcom/nemustech/regina/Element;)I
    .locals 8
    .parameter "e"

    .prologue
    const/4 v2, 0x0

    .line 2349
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2350
    .local v0, cr:Landroid/content/ContentResolver;
    sget-object v1, Lcom/nemustech/regina/ReginaSettings$Favorites;->CONTENT_URI:Landroid/net/Uri;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "_id="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v4, v2

    move-object v5, v2

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 2353
    .local v6, c:Landroid/database/Cursor;
    const-string v1, "rowNum"

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v7

    .line 2354
    .local v7, rowNumIndex:I
    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    return v1
.end method

.method public getSettedClockWidget()Lcom/nemustech/regina/widgets/clock/ClockWidget;
    .locals 1

    .prologue
    .line 1029
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettedClockWidget:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    return-object v0
.end method

.method public getTrash()Lcom/nemustech/regina/Element;
    .locals 1

    .prologue
    .line 1107
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementTrash:Lcom/nemustech/regina/Element;

    return-object v0
.end method

.method public getViewMode()I
    .locals 1

    .prologue
    .line 482
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mViewMode:I

    return v0
.end method

.method public getWeatherTempUnit()I
    .locals 1

    .prologue
    .line 2688
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherTempUnit:I

    return v0
.end method

.method public getWeatherUpdatePeriod()J
    .locals 2

    .prologue
    .line 1037
    iget-wide v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherUpdatePeriod:J

    return-wide v0
.end method

.method public getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    .locals 1

    .prologue
    .line 1086
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    return-object v0
.end method

.method public getWorkspaceMode()I
    .locals 1

    .prologue
    .line 580
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getWorkspaceName()Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 724
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceName:Landroid/widget/TextView;

    return-object v0
.end method

.method public getWorkspaceViewGroup()Landroid/view/ViewGroup;
    .locals 1

    .prologue
    .line 1065
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;

    move-result-object v0

    return-object v0
.end method

.method public getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;
    .locals 2
    .parameter "isSecretMode"

    .prologue
    .line 1070
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    if-eqz p1, :cond_0

    const/4 v1, 0x1

    :goto_0
    aget-object v0, v0, v1

    return-object v0

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public getWorld()Lcom/nemustech/tiffany/world/TFWorld;
    .locals 2

    .prologue
    .line 1057
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    if-nez v0, :cond_0

    .line 1058
    const-string v0, "ReginaLauncher"

    const-string v1, "You can\'t get world at this time"

    invoke-static {v0, v1}, Lcom/nemustech/regina/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1060
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    return-object v0
.end method

.method public hideSelectedShortCut()V
    .locals 2

    .prologue
    .line 1572
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPanel;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1573
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1574
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1576
    :cond_0
    return-void
.end method

.method public hideSoftInputWindow()V
    .locals 4

    .prologue
    .line 2679
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getWindow()Landroid/view/Window;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/Window;->peekDecorView()Landroid/view/View;

    move-result-object v1

    .line 2680
    .local v1, v:Landroid/view/View;
    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 2681
    const-string v2, "input_method"

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    .line 2683
    .local v0, imm:Landroid/view/inputmethod/InputMethodManager;
    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 2685
    .end local v0           #imm:Landroid/view/inputmethod/InputMethodManager;
    :cond_0
    return-void
.end method

.method public declared-synchronized increaseClockWidgetCount()V
    .locals 1

    .prologue
    .line 446
    monitor-enter p0

    :try_start_0
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I

    if-nez v0, :cond_0

    .line 447
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->startWeatherService()Z

    .line 449
    :cond_0
    iget v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mClockWidgetCount:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 450
    monitor-exit p0

    return-void

    .line 446
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public isElementLoading()Z
    .locals 1

    .prologue
    .line 2104
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsElementLoading:Z

    return v0
.end method

.method public isLaunchingApp()Z
    .locals 1

    .prologue
    .line 442
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsLaunchingApp:Z

    return v0
.end method

.method public isSecretMode()Z
    .locals 1

    .prologue
    .line 575
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsSecretMode:Z

    return v0
.end method

.method public isShortCutExpansion()Z
    .locals 1

    .prologue
    .line 1528
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShortCutExpansion:Z

    return v0
.end method

.method public logWorkspaceViewGroup(Z)V
    .locals 11
    .parameter "isSecretMode"

    .prologue
    const/4 v10, 0x1

    .line 1111
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;

    move-result-object v4

    .line 1113
    .local v4, vg:Landroid/view/ViewGroup;
    if-nez v4, :cond_0

    .line 1165
    :goto_0
    return-void

    .line 1117
    :cond_0
    if-eqz p1, :cond_1

    .line 1118
    const-string v7, "ReginaLauncher"

    const-string v8, "################# ANDROID VIEW HIERARCHY SECRET MODE START #################"

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1122
    :goto_1
    invoke-virtual {v4}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v6

    .line 1123
    .local v6, wsViewCnt:I
    if-eqz p1, :cond_2

    .line 1124
    const-string v7, "ReginaLauncher"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "### SecretWorkspaceViewGroup child count="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " desc="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v4}, Landroid/view/ViewGroup;->getContentDescription()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " visibility="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v4}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1133
    :goto_2
    const/4 v1, 0x0

    .local v1, i:I
    :goto_3
    if-ge v1, v6, :cond_4

    .line 1134
    invoke-virtual {v4, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 1135
    .local v0, g:Landroid/view/ViewGroup;
    invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v5

    .line 1136
    .local v5, wsViewChildCnt:I
    const-string v7, "ReginaLauncher"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, " ## WorkspaceView index="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " child count="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " desc="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getContentDescription()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " visibility="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " left="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getLeft()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " top="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getTop()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " width="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " height="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " object="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1146
    const/4 v2, 0x0

    .local v2, j:I
    :goto_4
    if-ge v2, v5, :cond_3

    .line 1147
    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 1148
    .local v3, v:Landroid/view/View;
    const-string v7, "ReginaLauncher"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "  # Widget index="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " left="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " top="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " width="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v3}, Landroid/view/View;->getWidth()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " height="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " desc="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v3}, Landroid/view/View;->getContentDescription()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " visibility="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v3}, Landroid/view/View;->getVisibility()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1146
    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    .line 1120
    .end local v0           #g:Landroid/view/ViewGroup;
    .end local v1           #i:I
    .end local v2           #j:I
    .end local v3           #v:Landroid/view/View;
    .end local v5           #wsViewChildCnt:I
    .end local v6           #wsViewCnt:I
    :cond_1
    const-string v7, "ReginaLauncher"

    const-string v8, "################# ANDROID VIEW HIERARCHY NORMAL MODE START #################"

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_1

    .line 1128
    .restart local v6       #wsViewCnt:I
    :cond_2
    const-string v7, "ReginaLauncher"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "### WorkspaceViewGroup child count="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " desc="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v4}, Landroid/view/ViewGroup;->getContentDescription()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, " visibility="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v4}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_2

    .line 1133
    .restart local v0       #g:Landroid/view/ViewGroup;
    .restart local v1       #i:I
    .restart local v2       #j:I
    .restart local v5       #wsViewChildCnt:I
    :cond_3
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_3

    .line 1158
    .end local v0           #g:Landroid/view/ViewGroup;
    .end local v2           #j:I
    .end local v5           #wsViewChildCnt:I
    :cond_4
    if-eqz p1, :cond_5

    .line 1159
    const-string v7, "ReginaLauncher"

    const-string v8, "################# ANDROID VIEW HIERARCHY SECRET MODE END #################"

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1164
    :goto_5
    iget-object v7, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v7, p1}, Lcom/nemustech/regina/ElementLocator;->logHolderHierarchy(Z)V

    goto/16 :goto_0

    .line 1161
    :cond_5
    const-string v7, "ReginaLauncher"

    const-string v8, "################# ANDROID VIEW HIERARCHY NORMAL MODE END #################"

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_5
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 18
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    .line 767
    const-string v14, "ReginaLauncher"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "onActivityResult() mElementIsAdding="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    move/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x1

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 769
    const/4 v14, -0x1

    move/from16 v0, p2

    move v1, v14

    if-ne v0, v1, :cond_8

    .line 770
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    move v14, v0

    if-nez v14, :cond_1

    .line 771
    move-object/from16 v0, p0

    move-object/from16 v1, p3

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->canceledActivityResult(Landroid/content/Intent;)V

    .line 900
    :cond_0
    :goto_0
    invoke-super/range {p0 .. p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 901
    return-void

    .line 773
    :cond_1
    packed-switch p1, :pswitch_data_0

    .line 889
    :pswitch_0
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    .line 890
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mIsShowCalendarDlg:Z

    goto :goto_0

    .line 776
    :pswitch_1
    const/4 v14, 0x2

    const/4 v15, 0x6

    move-object/from16 v0, p0

    move-object/from16 v1, p3

    move v2, v14

    move v3, v15

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ReginaLauncher;->processShortcut(Landroid/content/Intent;II)V

    goto :goto_0

    .line 781
    :pswitch_2
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mIsShowCalendarDlg:Z

    .line 782
    const/4 v14, 0x0

    move-object/from16 v0, p0

    move v1, v14

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setElementAdding(Z)V

    .line 783
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v14

    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lcom/nemustech/regina/ReginaPreference;->setReginaWidgetApptPackageName(Ljava/lang/String;)V

    .line 784
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v14

    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lcom/nemustech/regina/ReginaPreference;->setReginaWidgetApptClassName(Ljava/lang/String;)V

    .line 785
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v14

    invoke-virtual {v14}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 786
    move-object/from16 v0, p0

    move-object/from16 v1, p3

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivitySafely(Landroid/content/Intent;)V

    goto :goto_0

    .line 790
    :pswitch_3
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mIsShowClockDlg:Z

    .line 791
    const/4 v14, 0x0

    move-object/from16 v0, p0

    move v1, v14

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setElementAdding(Z)V

    .line 792
    new-instance v8, Landroid/content/ComponentName;

    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v14

    invoke-virtual {v14}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v14

    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v15

    invoke-direct {v8, v14, v15}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 793
    .local v8, componentName:Landroid/content/ComponentName;
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v14

    invoke-virtual {v14, v8}, Lcom/nemustech/regina/ReginaPreference;->setClockWidgetApp(Landroid/content/ComponentName;)V

    .line 794
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v14

    invoke-virtual {v14}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 795
    move-object/from16 v0, p0

    move-object/from16 v1, p3

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivitySafely(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 799
    .end local v8           #componentName:Landroid/content/ComponentName;
    :pswitch_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    move-object v14, v0

    const/4 v15, 0x0

    move-object v0, v14

    move-object/from16 v1, p3

    move v2, v15

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementMaker;->createShortcut(Landroid/content/Intent;Z)Lcom/nemustech/regina/Element;

    move-result-object v5

    check-cast v5, Lcom/nemustech/regina/ElementShortcut;

    .line 800
    .local v5, appElement:Lcom/nemustech/regina/ElementShortcut;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14, v5}, Lcom/nemustech/regina/ElementLocator;->arrange(Lcom/nemustech/regina/Element;)Z

    move-result v14

    const/4 v15, 0x1

    if-ne v14, v15, :cond_0

    .line 801
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v16

    invoke-virtual/range {v14 .. v16}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceView(II)Lcom/nemustech/regina/WorkspaceView;

    move-result-object v14

    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceView;->invalidate()V

    .line 802
    move-object/from16 v0, p0

    move-object v1, v5

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->addElementToDatabase(Lcom/nemustech/regina/Element;)V

    goto/16 :goto_0

    .line 807
    .end local v5           #appElement:Lcom/nemustech/regina/ElementShortcut;
    :pswitch_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    move-object v14, v0

    const/4 v15, 0x1

    move-object v0, v14

    move-object/from16 v1, p3

    move v2, v15

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementMaker;->createShortcut(Landroid/content/Intent;Z)Lcom/nemustech/regina/Element;

    move-result-object v12

    check-cast v12, Lcom/nemustech/regina/ElementShortcut;

    .line 808
    .local v12, scElement:Lcom/nemustech/regina/ElementShortcut;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14, v12}, Lcom/nemustech/regina/ElementLocator;->arrange(Lcom/nemustech/regina/Element;)Z

    move-result v14

    const/4 v15, 0x1

    if-ne v14, v15, :cond_0

    .line 809
    move-object/from16 v0, p0

    move-object v1, v12

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->addElementToDatabase(Lcom/nemustech/regina/Element;)V

    goto/16 :goto_0

    .line 813
    .end local v12           #scElement:Lcom/nemustech/regina/ElementShortcut;
    :pswitch_6
    move-object/from16 v0, p0

    move-object/from16 v1, p3

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->requestAppWidgetConfigure(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 816
    :pswitch_7
    move-object/from16 v0, p0

    move-object/from16 v1, p3

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->requestAppWidgetCreate(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 819
    :pswitch_8
    const/4 v6, 0x0

    .line 820
    .local v6, bgBitmap:Landroid/graphics/Bitmap;
    const/4 v11, 0x0

    .line 821
    .local v11, reducedBitmap:Landroid/graphics/Bitmap;
    const/4 v7, 0x0

    .line 824
    .local v7, bgBitmapUri:Landroid/net/Uri;
    if-eqz p3, :cond_2

    .line 825
    :try_start_0
    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v4

    .line 826
    .local v4, action:Ljava/lang/String;
    if-eqz v4, :cond_2

    .line 827
    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v7

    .line 828
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v14

    invoke-static {v14, v7}, Landroid/provider/MediaStore$Images$Media;->getBitmap(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v6

    .line 838
    .end local v4           #action:Ljava/lang/String;
    :cond_2
    :goto_1
    if-eqz v6, :cond_5

    .line 840
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v14

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    .line 841
    .local v13, uid:Ljava/lang/String;
    move-object/from16 v0, p0

    move-object v1, v6

    move-object v2, v13

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->saveWallpaper(Landroid/graphics/Bitmap;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 842
    .local v10, fileName:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v14

    move-object/from16 v0, p0

    move v1, v14

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->removeWallpaperThumb(Landroid/content/Context;I)Z

    .line 844
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v15

    invoke-virtual {v14, v15, v10}, Lcom/nemustech/regina/ReginaPreference;->setWallpaper(ILjava/lang/String;)V

    .line 845
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 847
    if-eqz v6, :cond_3

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->recycle()V

    .line 849
    :cond_3
    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v14

    const-string v15, "file:///"

    invoke-virtual {v14, v15}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v14

    if-eqz v14, :cond_4

    .line 850
    new-instance v14, Ljava/io/File;

    const-string v15, "/sdcard/rg_temp_wallpaper"

    invoke-direct {v14, v15}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14}, Ljava/io/File;->delete()Z

    .line 854
    :goto_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v14

    invoke-virtual {v14, v10}, Lcom/nemustech/regina/RGWorkspace;->setWallPaper(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 831
    .end local v10           #fileName:Ljava/lang/String;
    .end local v13           #uid:Ljava/lang/String;
    :catch_0
    move-exception v14

    move-object v9, v14

    .line 833
    .local v9, e:Ljava/io/FileNotFoundException;
    invoke-virtual {v9}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_1

    .line 834
    .end local v9           #e:Ljava/io/FileNotFoundException;
    :catch_1
    move-exception v14

    move-object v9, v14

    .line 836
    .local v9, e:Ljava/io/IOException;
    invoke-virtual {v9}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1

    .line 852
    .end local v9           #e:Ljava/io/IOException;
    .restart local v10       #fileName:Ljava/lang/String;
    .restart local v13       #uid:Ljava/lang/String;
    :cond_4
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v14

    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v15

    invoke-static {v15}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v15

    const/16 v16, 0x0

    const/16 v17, 0x0

    invoke-virtual/range {v14 .. v17}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_2

    .line 860
    .end local v10           #fileName:Ljava/lang/String;
    .end local v13           #uid:Ljava/lang/String;
    :cond_5
    if-nez v6, :cond_6

    .line 861
    :try_start_1
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v14

    const-string v15, "file:///mnt/sdcard/rg_temp_wallpaper"

    invoke-static {v15}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/provider/MediaStore$Images$Media;->getBitmap(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/Bitmap;
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3

    move-result-object v6

    .line 870
    :cond_6
    :goto_3
    if-eqz v6, :cond_0

    .line 873
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v14

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    .line 874
    .restart local v13       #uid:Ljava/lang/String;
    move-object/from16 v0, p0

    move-object v1, v6

    move-object v2, v13

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->saveWallpaper(Landroid/graphics/Bitmap;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 876
    .restart local v10       #fileName:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v14

    move-object/from16 v0, p0

    move v1, v14

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->removeWallpaperThumb(Landroid/content/Context;I)Z

    .line 877
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v15

    invoke-virtual {v14, v15, v10}, Lcom/nemustech/regina/ReginaPreference;->setWallpaper(ILjava/lang/String;)V

    .line 878
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 880
    if-eqz v6, :cond_7

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->recycle()V

    .line 882
    :cond_7
    new-instance v14, Ljava/io/File;

    const-string v15, "/sdcard/rg_temp_wallpaper"

    invoke-direct {v14, v15}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14}, Ljava/io/File;->delete()Z

    .line 883
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v14

    invoke-virtual {v14, v10}, Lcom/nemustech/regina/RGWorkspace;->setWallPaper(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 863
    .end local v10           #fileName:Ljava/lang/String;
    .end local v13           #uid:Ljava/lang/String;
    :catch_2
    move-exception v14

    move-object v9, v14

    .line 865
    .local v9, e:Ljava/io/FileNotFoundException;
    invoke-virtual {v9}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_3

    .line 866
    .end local v9           #e:Ljava/io/FileNotFoundException;
    :catch_3
    move-exception v14

    move-object v9, v14

    .line 868
    .local v9, e:Ljava/io/IOException;
    invoke-virtual {v9}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_3

    .line 894
    .end local v6           #bgBitmap:Landroid/graphics/Bitmap;
    .end local v7           #bgBitmapUri:Landroid/net/Uri;
    .end local v9           #e:Ljava/io/IOException;
    .end local v11           #reducedBitmap:Landroid/graphics/Bitmap;
    :cond_8
    if-nez p2, :cond_0

    .line 895
    move-object/from16 v0, p0

    move-object/from16 v1, p3

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->canceledActivityResult(Landroid/content/Intent;)V

    .line 896
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    .line 897
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mIsShowCalendarDlg:Z

    .line 898
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mIsShowClockDlg:Z

    goto/16 :goto_0

    .line 773
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_4
        :pswitch_6
        :pswitch_0
        :pswitch_0
        :pswitch_5
        :pswitch_0
        :pswitch_7
        :pswitch_8
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/high16 v4, 0x4000

    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 301
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 303
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->closeOptionsMenu()V

    .line 304
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->resetRegina()V

    .line 305
    const-string v0, "ReginaLauncher"

    const-string v1, "onCreate()"

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 307
    new-instance v0, Lcom/nemustech/regina/ReginaPreference;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ReginaPreference;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    .line 308
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mResCare:Lcom/nemustech/regina/ResourceCare;

    .line 309
    new-instance v0, Lcom/nemustech/regina/MenuCare;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/MenuCare;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mMenuCare:Lcom/nemustech/regina/MenuCare;

    .line 310
    new-instance v0, Lcom/nemustech/regina/DialogCare;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/DialogCare;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    .line 312
    new-instance v0, Landroid/text/SpannableStringBuilder;

    invoke-direct {v0}, Landroid/text/SpannableStringBuilder;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    .line 313
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-static {v0, v3}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 315
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->checkInitFlag()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 316
    const v0, 0x7f03000c

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->setContentView(I)V

    .line 318
    new-instance v0, Lcom/nemustech/regina/AppInfoManager;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/AppInfoManager;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    .line 320
    new-instance v0, Lcom/nemustech/tiffany/world/TFWorld;

    const/high16 v1, 0x4170

    invoke-direct {v0, v4, v4, v1}, Lcom/nemustech/tiffany/world/TFWorld;-><init>(FFF)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    .line 321
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-direct {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->initWorldCamera(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 323
    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v2, v2, v0}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mOneByOneBitmap:Landroid/graphics/Bitmap;

    .line 327
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsElementLoading:Z

    .line 330
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-static {p0, v0}, Lcom/nemustech/regina/PanelMaker;->createPanelMaker(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 332
    const v0, 0x7f090026

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/Intercepter;

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    .line 333
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/Intercepter;->setOrientation(I)V

    .line 335
    const v0, 0x7f090025

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceName:Landroid/widget/TextView;

    .line 337
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    const v0, 0x7f090023

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/WorkspaceViewGroup;

    aput-object v0, v1, v3

    .line 338
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    const v0, 0x7f090024

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/WorkspaceViewGroup;

    aput-object v0, v1, v2

    .line 340
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    aget-object v0, v0, v3

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/WorkspaceViewGroup;->setWillNotDraw(Z)V

    .line 341
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    aget-object v0, v0, v2

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/WorkspaceViewGroup;->setWillNotDraw(Z)V

    .line 343
    invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    .line 344
    new-instance v0, Lcom/nemustech/regina/ReginaAppWidgetHost;

    const/16 v1, 0x800

    invoke-direct {v0, p0, v1}, Lcom/nemustech/regina/ReginaAppWidgetHost;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    .line 345
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaAppWidgetHost;->startListening()V

    .line 348
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->isAntiAliasing()Z

    move-result v0

    iput-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAntiAliasing:Z

    .line 350
    const-string v0, "vibrator"

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/Vibrator;

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mVibrator:Landroid/os/Vibrator;

    .line 352
    new-instance v0, Lcom/nemustech/regina/ReginaAppFilter;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ReginaAppFilter;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppFilter:Lcom/nemustech/regina/ReginaAppFilter;

    .line 354
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->showProgressDialog()V

    .line 356
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->init()V

    .line 357
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->forceStopAnotherLauncher()V

    .line 358
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->registerContentObservers()V

    .line 359
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->registerScrollableReceiver()V

    .line 361
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->getShortCutExpansion()Z

    move-result v0

    iput-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsShortCutExpansion:Z

    .line 362
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->getUpdatePeriod()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherUpdatePeriod:J

    .line 364
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0, v2, v3}, Lcom/nemustech/tiffany/world/TFWorld;->setBlendingMode(ZZ)V

    .line 365
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFWorld;->setDepthTestMode(Z)V

    .line 366
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mAntiAliasing:Z

    if-nez v1, :cond_0

    move v1, v2

    :goto_0
    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFWorld;->banChiselFringe(Z)V

    .line 368
    const-string v0, "ReginaLauncher"

    const-string v1, "Blending Mode On"

    invoke-static {v0, v1}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 372
    invoke-virtual {p0, v3}, Lcom/nemustech/regina/ReginaLauncher;->setRenderAffinity(Z)V

    .line 374
    new-instance v0, Lcom/nemustech/regina/SelectionRequester;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/SelectionRequester;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelRequester:Lcom/nemustech/regina/SelectionRequester;

    .line 378
    new-instance v0, Lcom/nemustech/regina/ElementMaker;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    const/high16 v2, 0x3f80

    invoke-direct {v0, p0, v1, v2}, Lcom/nemustech/regina/ElementMaker;-><init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/tiffany/world/TFWorld;F)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementMaker:Lcom/nemustech/regina/ElementMaker;

    .line 384
    new-instance v0, Lcom/nemustech/regina/ElementLocator;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-direct {v0, p0, v1}, Lcom/nemustech/regina/ElementLocator;-><init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/tiffany/world/TFWorld;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    .line 387
    new-instance v0, Lcom/nemustech/regina/ElementAppList;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ElementAppList;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    .line 389
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->createTrash()V

    .line 390
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->createElementWorkspaceControlBtn()V

    .line 405
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    const v1, 0x7f090021

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFWorld;->show(Landroid/view/View;)Lcom/nemustech/tiffany/world/TFError;

    .line 411
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->registBroadcastReceivers()V

    .line 415
    :goto_1
    return-void

    :cond_0
    move v1, v3

    .line 366
    goto :goto_0

    .line 413
    :cond_1
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    goto :goto_1
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 1
    .parameter "id"

    .prologue
    .line 995
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/DialogCare;->createDialog(I)Landroid/app/Dialog;

    move-result-object v0

    return-object v0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 1
    .parameter "menu"

    .prologue
    .line 972
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mMenuCare:Lcom/nemustech/regina/MenuCare;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/MenuCare;->onCreateOptionsMenu(Landroid/view/Menu;)V

    .line 974
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    move-result v0

    return v0
.end method

.method protected onDestroy()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 2444
    const-string v1, "ReginaLauncher"

    const-string v2, "onDestroy()"

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2445
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->closeOptionsMenu()V

    .line 2447
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    if-nez v1, :cond_5

    .line 2448
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setSecretMode(Z)V

    .line 2450
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaAppWidgetHost;->stopListening()V

    .line 2451
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v1, p0}, Lcom/nemustech/regina/ReginaPreference;->unregisterPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    .line 2453
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->dismissProgressDialog()V

    .line 2455
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->abortElementLoader()V

    .line 2456
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    if-eqz v1, :cond_0

    .line 2457
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/ReginaPreference;->setInitializationStatus(I)V

    .line 2458
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2461
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    if-eqz v1, :cond_1

    .line 2462
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v1}, Lcom/nemustech/regina/AppInfoManager;->abortLoader()V

    .line 2463
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v1, p0}, Lcom/nemustech/regina/AppInfoManager;->unregisterReceiver(Landroid/content/Context;)V

    .line 2466
    :cond_1
    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.nemustech.regina.weatherserver.WeatherServer"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->stopService(Landroid/content/Intent;)Z

    .line 2467
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->unregisterContentObservers()V

    .line 2469
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getUninstallBroadcastReceiver()Landroid/content/BroadcastReceiver;

    move-result-object v0

    .line 2470
    .local v0, receiver:Landroid/content/BroadcastReceiver;
    if-eqz v0, :cond_2

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 2472
    :cond_2
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getUpdateBroadcastReceiver()Landroid/content/BroadcastReceiver;

    move-result-object v0

    .line 2473
    if-eqz v0, :cond_3

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 2475
    :cond_3
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getSDStorageBroadcastReceiver()Landroid/content/BroadcastReceiver;

    move-result-object v0

    .line 2476
    if-eqz v0, :cond_4

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 2478
    :cond_4
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mMMSReceiver:Landroid/content/BroadcastReceiver;

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mMMSReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 2481
    .end local v0           #receiver:Landroid/content/BroadcastReceiver;
    :cond_5
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mScrollableWidgetProvider:Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

    if-eqz v1, :cond_6

    .line 2482
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mScrollableWidgetProvider:Lmobi/intuitit/android/widget/ScrollableWidgetProvider;

    invoke-virtual {v1}, Lmobi/intuitit/android/widget/ScrollableWidgetProvider;->unbindWidgetScrollable()Z

    .line 2483
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->unregisterScrollableReceiver()V

    .line 2486
    :cond_6
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 2487
    return-void
.end method

.method public onLowMemory()V
    .locals 3

    .prologue
    .line 2902
    const-string v0, "ReginaLauncher"

    const-string v1, "onLowMemory()"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2903
    invoke-super {p0}, Landroid/app/Activity;->onLowMemory()V

    .line 2904
    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 5
    .parameter "intent"

    .prologue
    const/high16 v4, 0x40

    const/4 v3, 0x1

    .line 2822
    const-string v1, "ReginaLauncher"

    const-string v2, "onNewIntent"

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2823
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    if-nez v1, :cond_6

    .line 2825
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    if-eqz v1, :cond_1

    .line 2826
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v1}, Lcom/nemustech/regina/Intercepter;->getSecretPointChecker()Lcom/nemustech/regina/SecretPointChecker;

    move-result-object v0

    .line 2827
    .local v0, spChecker:Lcom/nemustech/regina/SecretPointChecker;
    if-eqz v0, :cond_1

    .line 2828
    invoke-virtual {v0}, Lcom/nemustech/regina/SecretPointChecker;->isSecretEnteringMode()Z

    move-result v1

    if-ne v1, v3, :cond_1

    .line 2875
    .end local v0           #spChecker:Lcom/nemustech/regina/SecretPointChecker;
    :cond_0
    :goto_0
    return-void

    .line 2835
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getPos()F

    move-result v1

    const/4 v2, 0x0

    cmpl-float v1, v1, v2

    if-nez v1, :cond_0

    .line 2837
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFWorld;->isLocked()Z

    move-result v1

    if-nez v1, :cond_0

    .line 2841
    const-string v1, "android.intent.action.MAIN"

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 2842
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->closeAllPanels()V

    .line 2843
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    if-eqz v1, :cond_2

    .line 2844
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    invoke-virtual {v1}, Lcom/nemustech/regina/DialogCare;->closeCurrentDialog()V

    .line 2851
    :cond_2
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsElementLoading:Z

    if-nez v1, :cond_4

    .line 2852
    invoke-virtual {p1}, Landroid/content/Intent;->getFlags()I

    move-result v1

    and-int/2addr v1, v4

    if-eq v1, v4, :cond_4

    .line 2854
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v1

    const/4 v2, 0x4

    if-ne v1, v2, :cond_5

    .line 2855
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettingsCalled:Z

    if-nez v1, :cond_3

    .line 2856
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->appListTransition()V

    .line 2863
    :cond_3
    :goto_1
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->hideSoftInputWindow()V

    .line 2874
    :cond_4
    :goto_2
    invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V

    goto :goto_0

    .line 2859
    :cond_5
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettingsCalled:Z

    if-nez v1, :cond_3

    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mOnStop:Z

    if-nez v1, :cond_3

    .line 2860
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->processWorkspaces()V

    goto :goto_1

    .line 2869
    :cond_6
    const-string v1, "ReginaLauncher"

    const-string v2, "Could not start ReginaLauncher previously, so RESTARTING activity..."

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2870
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v1

    invoke-static {v1}, Landroid/os/Process;->killProcess(I)V

    .line 2871
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->finish()V

    .line 2872
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivity(Landroid/content/Intent;)V

    goto :goto_2
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 1
    .parameter "item"

    .prologue
    .line 986
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mMenuCare:Lcom/nemustech/regina/MenuCare;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/MenuCare;->onOptionsItemSelected(Landroid/view/MenuItem;)V

    .line 988
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result v0

    return v0
.end method

.method protected onPause()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 2782
    const-string v0, "ReginaLauncher"

    const-string v1, "onPause()"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2783
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    if-nez v0, :cond_2

    .line 2785
    iput-boolean v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mResumeWorld:Z

    .line 2787
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    if-eqz v0, :cond_0

    .line 2788
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    invoke-virtual {v0}, Lcom/nemustech/regina/DialogCare;->closeCurrentDialog()V

    .line 2792
    :cond_0
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v1

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getScrollY()I

    move-result v1

    invoke-virtual {v0, v3, v1}, Landroid/view/ViewGroup;->scrollTo(II)V

    .line 2794
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementWorkspaceControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->resetAni()V

    .line 2795
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v0}, Lcom/nemustech/regina/Intercepter;->resetSelectedElement()V

    .line 2796
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v0}, Lcom/nemustech/regina/Intercepter;->clearGuideLine()V

    .line 2798
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    if-eqz v0, :cond_1

    .line 2799
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder$MoveAnimation;->repositionHeadModel()Z

    .line 2801
    :cond_1
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->pauseAllWorkspaces()V

    .line 2803
    :cond_2
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 2804
    return-void
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 1
    .parameter "menu"

    .prologue
    .line 979
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mMenuCare:Lcom/nemustech/regina/MenuCare;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/MenuCare;->onPrepareOptionsMenu(Landroid/view/Menu;)V

    .line 981
    invoke-super {p0, p1}, Landroid/app/Activity;->onPrepareOptionsMenu(Landroid/view/Menu;)Z

    move-result v0

    return v0
.end method

.method protected onRestart()V
    .locals 3

    .prologue
    .line 2879
    const-string v0, "ReginaLauncher"

    const-string v1, "onRestart()"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2880
    invoke-super {p0}, Landroid/app/Activity;->onRestart()V

    .line 2881
    return-void
.end method

.method protected onResume()V
    .locals 25

    .prologue
    .line 2491
    const-string v22, "ReginaLauncher"

    const-string v23, "onResume()"

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2492
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    move/from16 v22, v0

    if-nez v22, :cond_12

    .line 2494
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->isAntiAliasing()Z

    move-result v3

    .line 2495
    .local v3, antiAliasing:Z
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mAntiAliasing:Z

    move/from16 v22, v0

    move v0, v3

    move/from16 v1, v22

    if-eq v0, v1, :cond_0

    .line 2496
    move v0, v3

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mAntiAliasing:Z

    .line 2497
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mAntiAliasing:Z

    move/from16 v23, v0

    if-nez v23, :cond_6

    const/16 v23, 0x1

    :goto_0
    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/tiffany/world/TFWorld;->banChiselFringe(Z)V

    .line 2498
    const v22, 0x7f090021

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v19

    check-cast v19, Lcom/nemustech/tiffany/world/TFView;

    .line 2499
    .local v19, tiffanyView:Lcom/nemustech/tiffany/world/TFView;
    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/tiffany/world/TFView;->releaseEglContext()V

    .line 2501
    .end local v19           #tiffanyView:Lcom/nemustech/tiffany/world/TFView;
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Intercepter;->getSecretPointChecker()Lcom/nemustech/regina/SecretPointChecker;

    move-result-object v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/ReginaPreference;->getSecretPassword()Ljava/lang/String;

    move-result-object v23

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/SecretPointChecker;->setSecretPassword(Ljava/lang/String;)V

    .line 2503
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->hideSoftInputWindow()V

    .line 2505
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mIsLaunchingApp:Z

    move/from16 v22, v0

    if-eqz v22, :cond_1

    .line 2506
    const/16 v22, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 2507
    const-string v22, "Intercepter"

    const-string v23, "onResume - setTouchable is setted true"

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2511
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    if-eqz v22, :cond_2

    .line 2512
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v23, v0

    const/16 v24, 0x0

    invoke-virtual/range {v23 .. v24}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceEndless(Z)Z

    move-result v23

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementLocator;->applyEndlessMode(Z)V

    .line 2515
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->getThemeWallpaperFlag()Z

    move-result v22

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_4

    .line 2517
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->getThemeWallpaperPackage()Ljava/lang/String;

    move-result-object v15

    .line 2518
    .local v15, themePkgName:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->getThemeWallpaperResid()I

    move-result v17

    .line 2519
    .local v17, themeResId:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->getThemeWallpaperWorkspaceIndex()I

    move-result v18

    .line 2521
    .local v18, themeWsIndex:I
    invoke-virtual {v15}, Ljava/lang/String;->length()I

    move-result v22

    if-lez v22, :cond_3

    if-eqz v17, :cond_3

    const/16 v22, -0x1

    move/from16 v0, v18

    move/from16 v1, v22

    if-eq v0, v1, :cond_3

    .line 2522
    const/16 v16, 0x0

    .line 2524
    .local v16, themeRes:Landroid/content/res/Resources;
    :try_start_0
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v22

    move-object/from16 v0, v22

    move-object v1, v15

    invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v16

    .line 2529
    :goto_1
    if-eqz v16, :cond_3

    .line 2530
    invoke-virtual/range {v16 .. v17}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    check-cast v4, Landroid/graphics/drawable/BitmapDrawable;

    .line 2531
    .local v4, bd:Landroid/graphics/drawable/BitmapDrawable;
    invoke-virtual {v4}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v5

    .line 2533
    .local v5, bgBitmap:Landroid/graphics/Bitmap;
    if-eqz v5, :cond_3

    .line 2535
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v22

    invoke-static/range {v22 .. v22}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v21

    .line 2536
    .local v21, workspaceUID:Ljava/lang/String;
    move-object/from16 v0, p0

    move-object v1, v5

    move-object/from16 v2, v21

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->saveWallpaper(Landroid/graphics/Bitmap;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 2537
    .local v9, fileName:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v22

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->removeWallpaperThumb(Landroid/content/Context;I)Z

    .line 2540
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v22

    move-object/from16 v0, v22

    move-object v1, v9

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspace;->setWallPaper(Ljava/lang/String;)V

    .line 2541
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v23

    move-object/from16 v0, v22

    move/from16 v1, v23

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ReginaPreference;->setWallpaper(ILjava/lang/String;)V

    .line 2547
    .end local v4           #bd:Landroid/graphics/drawable/BitmapDrawable;
    .end local v5           #bgBitmap:Landroid/graphics/Bitmap;
    .end local v9           #fileName:Ljava/lang/String;
    .end local v16           #themeRes:Landroid/content/res/Resources;
    .end local v21           #workspaceUID:Ljava/lang/String;
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaPreference;->setThemeWallpaperPackage(Ljava/lang/String;)V

    .line 2548
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaPreference;->setThemeWallpaperResid(I)V

    .line 2549
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    const/16 v23, -0x1

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaPreference;->setThemeWallpaperWorkspaceIndex(I)V

    .line 2550
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaPreference;->setThemeWallpaperFlag(Z)V

    .line 2552
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2555
    .end local v15           #themePkgName:Ljava/lang/String;
    .end local v17           #themeResId:I
    .end local v18           #themeWsIndex:I
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    move-object/from16 v22, v0

    if-eqz v22, :cond_5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementAppList;->isRequestClose()Z

    move-result v22

    if-eqz v22, :cond_5

    .line 2556
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementAppList;->returnToWorkspaceWithoutAnimation()V

    .line 2557
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/ReginaPreference;->isAppListScrollEffectOn()Z

    move-result v23

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementAppList;->setIgnoreMovementOnSelect(Z)V

    .line 2560
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->getRestartByRestore()Z

    move-result v13

    .line 2561
    .local v13, isRestore:Z
    const/16 v22, 0x1

    move v0, v13

    move/from16 v1, v22

    if-ne v0, v1, :cond_7

    .line 2562
    invoke-super/range {p0 .. p0}, Landroid/app/Activity;->onResume()V

    .line 2564
    const-string v22, "ReginaLauncher"

    const-string v23, "RESTARTING activity..."

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2566
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v22

    invoke-static/range {v22 .. v22}, Landroid/os/Process;->killProcess(I)V

    .line 2567
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->finish()V

    .line 2568
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getIntent()Landroid/content/Intent;

    move-result-object v22

    move-object/from16 v0, p0

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->startActivity(Landroid/content/Intent;)V

    .line 2676
    .end local v3           #antiAliasing:Z
    .end local v13           #isRestore:Z
    :goto_2
    return-void

    .line 2497
    .restart local v3       #antiAliasing:Z
    :cond_6
    const/16 v23, 0x0

    goto/16 :goto_0

    .line 2525
    .restart local v15       #themePkgName:Ljava/lang/String;
    .restart local v16       #themeRes:Landroid/content/res/Resources;
    .restart local v17       #themeResId:I
    .restart local v18       #themeWsIndex:I
    :catch_0
    move-exception v22

    move-object/from16 v8, v22

    .line 2526
    .local v8, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v8}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto/16 :goto_1

    .line 2572
    .end local v8           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    .end local v15           #themePkgName:Ljava/lang/String;
    .end local v16           #themeRes:Landroid/content/res/Resources;
    .end local v17           #themeResId:I
    .end local v18           #themeWsIndex:I
    .restart local v13       #isRestore:Z
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    if-eqz v22, :cond_8

    .line 2573
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceBrowser()Lcom/nemustech/regina/WorkspaceBrowser;

    move-result-object v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/ReginaPreference;->getReflectionWsScroller()Z

    move-result v23

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/WorkspaceBrowser;->setReflectingFloor(Z)V

    .line 2574
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/ReginaPreference;->getReflectionAppList()Z

    move-result v23

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementAppList;->setReflectingFloor(Z)V

    .line 2575
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaPreference;->getShortCutExpansion()Z

    move-result v22

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mIsShortCutExpansion:Z

    .line 2577
    :cond_8
    invoke-super/range {p0 .. p0}, Landroid/app/Activity;->onResume()V

    .line 2580
    const-string v22, "ReginaLauncher"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "mWorld.isPaused()="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/tiffany/world/TFWorld;->isPaused()Z

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2582
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mViewMode:I

    move/from16 v22, v0

    const/16 v23, 0x5

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_9

    .line 2583
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceBrowser()Lcom/nemustech/regina/WorkspaceBrowser;

    move-result-object v6

    .line 2584
    .local v6, browser:Lcom/nemustech/regina/WorkspaceBrowser;
    invoke-virtual {v6}, Lcom/nemustech/regina/WorkspaceBrowser;->flickingZoneToOrigin()V

    .line 2587
    .end local v6           #browser:Lcom/nemustech/regina/WorkspaceBrowser;
    :cond_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/tiffany/world/TFWorld;->isPaused()Z

    move-result v22

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-eq v0, v1, :cond_a

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mResumeWorld:Z

    move/from16 v22, v0

    if-eqz v22, :cond_10

    .line 2590
    :cond_a
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v7

    .line 2591
    .local v7, currentWorkspaceIndex:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/tiffany/world/TFHolder;->getSlotCount()I

    move-result v14

    .line 2593
    .local v14, slotCount:I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mViewMode:I

    move/from16 v22, v0

    const/16 v23, 0x4

    move/from16 v0, v22

    move/from16 v1, v23

    if-eq v0, v1, :cond_d

    .line 2594
    const/4 v10, 0x0

    .local v10, i:I
    :goto_3
    if-ge v10, v14, :cond_d

    .line 2595
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v22

    move-object/from16 v0, v22

    move v1, v10

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getItemIndexOfSlot(I)I

    move-result v11

    .line 2597
    .local v11, idx:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v22

    move-object/from16 v0, v22

    move v1, v10

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v20

    check-cast v20, Lcom/nemustech/regina/RGWorkspace;

    .line 2598
    .local v20, workspace:Lcom/nemustech/regina/RGWorkspace;
    if-ne v11, v7, :cond_c

    const/16 v22, 0x1

    :goto_4
    move-object/from16 v0, v20

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspace;->setVisibility(Z)V

    .line 2600
    if-ne v11, v7, :cond_b

    .line 2601
    invoke-virtual/range {v20 .. v20}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/WorkspaceView;->requestLayout()V

    .line 2594
    :cond_b
    add-int/lit8 v10, v10, 0x1

    goto :goto_3

    .line 2598
    :cond_c
    const/16 v22, 0x0

    goto :goto_4

    .line 2606
    .end local v10           #i:I
    .end local v11           #idx:I
    .end local v20           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_d
    const/4 v12, 0x0

    .line 2611
    .local v12, isFirstLaunching:Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    move-object/from16 v22, v0

    if-nez v22, :cond_e

    .line 2612
    const/4 v12, 0x1

    .line 2613
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->startElementLoader()V

    .line 2617
    :cond_e
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mViewMode:I

    move/from16 v22, v0

    const/16 v23, 0x4

    move/from16 v0, v22

    move/from16 v1, v23

    if-eq v0, v1, :cond_f

    .line 2618
    const/4 v10, 0x0

    .restart local v10       #i:I
    :goto_5
    if-ge v10, v14, :cond_f

    .line 2619
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v22

    move-object/from16 v0, v22

    move v1, v10

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v20

    check-cast v20, Lcom/nemustech/regina/RGWorkspace;

    .line 2620
    .restart local v20       #workspace:Lcom/nemustech/regina/RGWorkspace;
    const/16 v22, 0x1

    move-object/from16 v0, v20

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspace;->setVisibility(Z)V

    .line 2618
    add-int/lit8 v10, v10, 0x1

    goto :goto_5

    .line 2665
    .end local v10           #i:I
    .end local v20           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_f
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/tiffany/world/TFWorld;->resume()V

    .line 2668
    .end local v7           #currentWorkspaceIndex:I
    .end local v12           #isFirstLaunching:Z
    .end local v14           #slotCount:I
    :cond_10
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v22, v0

    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v24

    invoke-virtual/range {v22 .. v24}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(II)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v20

    .line 2669
    .restart local v20       #workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual/range {v20 .. v20}, Lcom/nemustech/regina/RGWorkspace;->isPaused()Z

    move-result v22

    if-eqz v22, :cond_11

    .line 2670
    invoke-virtual/range {v20 .. v20}, Lcom/nemustech/regina/RGWorkspace;->resume()V

    .line 2672
    :cond_11
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncher;->mSettingsCalled:Z

    goto/16 :goto_2

    .line 2674
    .end local v3           #antiAliasing:Z
    .end local v13           #isRestore:Z
    .end local v20           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_12
    invoke-super/range {p0 .. p0}, Landroid/app/Activity;->onResume()V

    goto/16 :goto_2
.end method

.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 0
    .parameter "sharedPreferences"
    .parameter "key"

    .prologue
    .line 2818
    return-void
.end method

.method protected onStart()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    .line 2885
    invoke-direct {p0, v4}, Lcom/nemustech/regina/ReginaLauncher;->cacheTexture(Z)V

    .line 2886
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    if-nez v1, :cond_1

    .line 2887
    const-string v1, "ReginaLauncher"

    const-string v2, "onStart()"

    invoke-static {v1, v2, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2890
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(II)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 2891
    .local v0, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->isPaused()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 2892
    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->resume()V

    .line 2894
    :cond_0
    iput-boolean v4, p0, Lcom/nemustech/regina/ReginaLauncher;->mResumeWorld:Z

    .line 2895
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mOnStop:Z

    .line 2897
    .end local v0           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_1
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 2898
    return-void
.end method

.method protected onStop()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 2407
    const-string v0, "ReginaLauncher"

    const-string v1, "onStop()"

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2410
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->cacheTexture(Z)V

    .line 2433
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    if-nez v0, :cond_0

    .line 2434
    iput-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mOnStop:Z

    .line 2435
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->pause()V

    .line 2438
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    .line 2439
    return-void
.end method

.method public onUserInteraction()V
    .locals 3

    .prologue
    .line 2726
    const-string v0, "ReginaLauncher"

    const-string v1, "onUserInteraction!!"

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->i(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2727
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsCacheWorkspaceThumbRunnableAdded:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    if-eqz v0, :cond_0

    .line 2728
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mCacheWorkspaceThumbRunnable:Lcom/nemustech/regina/ReginaLauncher$CacheWorkspaceThumbRunnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 2729
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsCacheWorkspaceThumbRunnableAdded:Z

    .line 2730
    const-string v0, "ReginaLauncher"

    const-string v1, "Caching workspace thumbnail has been canceled by User\'s interaction"

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->i(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2732
    :cond_0
    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 3
    .parameter "hasFocus"

    .prologue
    .line 2809
    const-string v0, "ReginaLauncher"

    const-string v1, "onWindowFocusChanged()"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2810
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mFailToLoad:Z

    if-nez v0, :cond_0

    .line 2811
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->hideSelectedShortCut()V

    .line 2812
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v0}, Lcom/nemustech/regina/Intercepter;->cancelToast()V

    .line 2814
    :cond_0
    return-void
.end method

.method processShortcut(Landroid/content/Intent;II)V
    .locals 6
    .parameter "intent"
    .parameter "requestCodeApplication"
    .parameter "requestCodeShortcut"

    .prologue
    .line 1171
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f070003

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 1172
    .local v0, applicationName:Ljava/lang/String;
    const-string v4, "android.intent.extra.shortcut.NAME"

    invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 1174
    .local v3, shortcutName:Ljava/lang/String;
    if-eqz v0, :cond_0

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 1175
    new-instance v1, Landroid/content/Intent;

    const-string v4, "android.intent.action.MAIN"

    const/4 v5, 0x0

    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 1176
    .local v1, mainIntent:Landroid/content/Intent;
    const-string v4, "android.intent.category.LAUNCHER"

    invoke-virtual {v1, v4}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 1178
    new-instance v2, Landroid/content/Intent;

    const-string v4, "android.intent.action.PICK_ACTIVITY"

    invoke-direct {v2, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1179
    .local v2, pickIntent:Landroid/content/Intent;
    const-string v4, "android.intent.extra.INTENT"

    invoke-virtual {v2, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 1180
    invoke-virtual {p0, v2, p2}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1184
    .end local v1           #mainIntent:Landroid/content/Intent;
    .end local v2           #pickIntent:Landroid/content/Intent;
    :goto_0
    return-void

    .line 1182
    :cond_0
    invoke-virtual {p0, p1, p3}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0
.end method

.method public processWorkspaces()V
    .locals 2

    .prologue
    .line 680
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    if-eqz v0, :cond_0

    .line 681
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->hideWorkspaceNameView()V

    .line 682
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 695
    :cond_0
    :goto_0
    return-void

    .line 685
    :pswitch_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementLocator;->animateToWorkspaceSwitcherFrom(I)V

    goto :goto_0

    .line 688
    :pswitch_1
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->animateToWorkspace()V

    goto :goto_0

    .line 691
    :pswitch_2
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementLocator;->animateToWorkspaceSwitcherFrom(I)V

    goto :goto_0

    .line 682
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public requestAppWidgetPick()V
    .locals 5

    .prologue
    .line 2130
    iget-object v4, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    if-eqz v4, :cond_0

    .line 2131
    iget-object v4, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaAppWidgetHost:Lcom/nemustech/regina/ReginaAppWidgetHost;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaAppWidgetHost;->allocateAppWidgetId()I

    move-result v0

    .line 2133
    .local v0, appWidgetId:I
    new-instance v3, Landroid/content/Intent;

    const-string v4, "android.appwidget.action.APPWIDGET_PICK"

    invoke-direct {v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2134
    .local v3, pickIntent:Landroid/content/Intent;
    const-string v4, "appWidgetId"

    invoke-virtual {v3, v4, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 2136
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 2143
    .local v2, customInfo:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/appwidget/AppWidgetProviderInfo;>;"
    const-string v4, "customInfo"

    invoke-virtual {v3, v4, v2}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 2145
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 2149
    .local v1, customExtras:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/os/Bundle;>;"
    const-string v4, "customExtras"

    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 2152
    const/4 v4, 0x3

    invoke-virtual {p0, v3, v4}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 2154
    .end local v0           #appWidgetId:I
    .end local v1           #customExtras:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/os/Bundle;>;"
    .end local v2           #customInfo:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/appwidget/AppWidgetProviderInfo;>;"
    .end local v3           #pickIntent:Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method public scrollAppList(F)V
    .locals 1
    .parameter "scrollValue"

    .prologue
    .line 3128
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/ElementAppList;->scrollAppList(F)V

    .line 3129
    return-void
.end method

.method public scrollAppList(ILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V
    .locals 1
    .parameter "appListIndex"
    .parameter "animationListener"

    .prologue
    .line 3132
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v0, p1, p2}, Lcom/nemustech/regina/ElementAppList;->scrollAppList(ILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 3133
    return-void
.end method

.method public scrollAppListToDir(IILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V
    .locals 4
    .parameter "dir"
    .parameter "duration"
    .parameter "animationListener"

    .prologue
    .line 3151
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAppList;->getCurrentAppListIndex()I

    move-result v0

    .line 3152
    .local v0, newAppListPage:I
    packed-switch p1, :pswitch_data_0

    .line 3163
    :goto_0
    :pswitch_0
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->isAppListScrollEffectOn()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3164
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    const v2, 0x3fc90fdb

    int-to-float v3, p1

    mul-float/2addr v2, v3

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementAppList;->rotateHolderAngle(F)V

    .line 3166
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v1, v0, p2, p3}, Lcom/nemustech/regina/ElementAppList;->scrollAppList(IILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 3167
    return-void

    .line 3154
    :pswitch_1
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getAppInfoManager()Lcom/nemustech/regina/AppInfoManager;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/AppInfoManager;->setScrollDirection(I)V

    .line 3155
    add-int/lit8 v0, v0, -0x1

    .line 3156
    goto :goto_0

    .line 3158
    :pswitch_2
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getAppInfoManager()Lcom/nemustech/regina/AppInfoManager;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/AppInfoManager;->setScrollDirection(I)V

    .line 3159
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 3152
    nop

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public scrollAppListToDir(ILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V
    .locals 3
    .parameter "dir"
    .parameter "animationListener"

    .prologue
    .line 3136
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAppList;->getCurrentAppListIndex()I

    move-result v0

    .line 3137
    .local v0, newAppListPage:I
    packed-switch p1, :pswitch_data_0

    .line 3147
    :goto_0
    :pswitch_0
    invoke-virtual {p0, v0, p2}, Lcom/nemustech/regina/ReginaLauncher;->scrollAppList(ILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 3148
    return-void

    .line 3139
    :pswitch_1
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getAppInfoManager()Lcom/nemustech/regina/AppInfoManager;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/AppInfoManager;->setScrollDirection(I)V

    .line 3140
    add-int/lit8 v0, v0, -0x1

    .line 3141
    goto :goto_0

    .line 3143
    :pswitch_2
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getAppInfoManager()Lcom/nemustech/regina/AppInfoManager;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/AppInfoManager;->setScrollDirection(I)V

    .line 3144
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 3137
    nop

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public set2DViewVisibility(ZLjava/lang/Runnable;)V
    .locals 4
    .parameter "visible"
    .parameter "postActor"

    .prologue
    .line 488
    move v1, p1

    .line 489
    .local v1, visibility:Z
    move-object v0, p2

    .line 490
    .local v0, r:Ljava/lang/Runnable;
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mHandler:Landroid/os/Handler;

    new-instance v3, Lcom/nemustech/regina/ReginaLauncher$2;

    invoke-direct {v3, p0, v0, v1}, Lcom/nemustech/regina/ReginaLauncher$2;-><init>(Lcom/nemustech/regina/ReginaLauncher;Ljava/lang/Runnable;Z)V

    invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 502
    return-void
.end method

.method public setDebuggingInfo(Z)V
    .locals 4
    .parameter "isDebugging"

    .prologue
    .line 2393
    if-eqz p1, :cond_0

    .line 2394
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v2

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/WorkspaceViewGroup;

    .line 2395
    .local v0, viewGroup:Lcom/nemustech/regina/WorkspaceViewGroup;
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/WorkspaceViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/WorkspaceView;

    .line 2396
    .local v1, wsCell:Lcom/nemustech/regina/WorkspaceView;
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v2

    invoke-virtual {v1, p1, v2}, Lcom/nemustech/regina/WorkspaceView;->setDebugBound(ZLcom/nemustech/regina/RGWorkspace;)V

    .line 2397
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v3

    invoke-virtual {v2, p1, v3}, Lcom/nemustech/regina/Intercepter;->setDebugBound(ZLcom/nemustech/regina/RGWorkspace;)V

    .line 2399
    .end local v0           #viewGroup:Lcom/nemustech/regina/WorkspaceViewGroup;
    .end local v1           #wsCell:Lcom/nemustech/regina/WorkspaceView;
    :cond_0
    return-void
.end method

.method public setElementAdding(Z)V
    .locals 0
    .parameter "adding"

    .prologue
    .line 2126
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementIsAdding:Z

    .line 2127
    return-void
.end method

.method public setForegroundVisibility(Z)V
    .locals 1
    .parameter "visible"

    .prologue
    .line 554
    const/4 v0, 0x1

    invoke-virtual {p0, p1, v0}, Lcom/nemustech/regina/ReginaLauncher;->setForegroundVisibility(ZZ)V

    .line 555
    return-void
.end method

.method public setForegroundVisibility(ZZ)V
    .locals 5
    .parameter "visible"
    .parameter "includeControlButton"

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 531
    const-string v0, "ReginaLauncher"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "setForegroundVisibility : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->i(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 532
    if-eqz p1, :cond_1

    .line 533
    const/4 v0, 0x0

    invoke-virtual {p0, v3, v0}, Lcom/nemustech/regina/ReginaLauncher;->set2DViewVisibility(ZLjava/lang/Runnable;)V

    .line 535
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFHolder;->setVisibility(Z)V

    .line 536
    if-eqz p2, :cond_0

    .line 537
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setVisibility(Z)V

    .line 538
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setOpacity(F)V

    .line 539
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v0

    const/high16 v1, 0x3f80

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->fade(FJ)V

    .line 551
    :cond_0
    :goto_0
    return-void

    .line 542
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFHolder;->setVisibility(Z)V

    .line 543
    if-eqz p2, :cond_2

    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLocater:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setVisibility(Z)V

    .line 545
    :cond_2
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$3;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ReginaLauncher$3;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFWorld;->setPostDrawListener(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public setLockLaunching(Z)V
    .locals 2
    .parameter "lock"

    .prologue
    .line 1467
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    if-eqz v0, :cond_0

    .line 1468
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    if-nez p1, :cond_1

    const/4 v1, 0x1

    :goto_0
    invoke-virtual {v0, v1}, Lcom/nemustech/regina/Intercepter;->setTouchable(Z)V

    .line 1469
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsLaunchingApp:Z

    .line 1471
    :cond_0
    return-void

    .line 1468
    :cond_1
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public setRGWidgetPrefRowNum(I)V
    .locals 1
    .parameter "rowCount"

    .prologue
    .line 1049
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

    if-eqz v0, :cond_0

    .line 1050
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->setMaxAvailablePrefRowNum(I)V

    .line 1051
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementReginaWidget;->refreshBackCenterItemPanel()V

    .line 1052
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

    .line 1054
    :cond_0
    return-void
.end method

.method public setRenderAffinity(Z)V
    .locals 2
    .parameter "bInteraction"

    .prologue
    .line 728
    if-eqz p1, :cond_0

    const/4 v1, 0x2

    move v0, v1

    .line 729
    .local v0, affinity:I
    :goto_0
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFWorld;->setRenderAffinity(I)V

    .line 730
    return-void

    .line 728
    .end local v0           #affinity:I
    :cond_0
    const/4 v1, 0x1

    move v0, v1

    goto :goto_0
.end method

.method public setSecretMode(Z)V
    .locals 1
    .parameter "isSecret"

    .prologue
    .line 567
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsSecretMode:Z

    .line 568
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v0}, Lcom/nemustech/regina/Intercepter;->getSecretPointChecker()Lcom/nemustech/regina/SecretPointChecker;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/SecretPointChecker;->setSecretWsMode(Z)V

    .line 571
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppInfoManager;->notifyDataSetChanged()V

    .line 572
    return-void
.end method

.method public setSettingsCalled(Z)V
    .locals 0
    .parameter "called"

    .prologue
    .line 676
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettingsCalled:Z

    .line 677
    return-void
.end method

.method public setTouchable(Z)V
    .locals 3
    .parameter "value"

    .prologue
    const v2, 0x7f090021

    .line 698
    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/view/View;->setLongClickable(Z)V

    .line 699
    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/view/View;->setClickable(Z)V

    .line 702
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    const/4 v1, 0x2

    if-ge v0, v1, :cond_0

    .line 703
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    aget-object v1, v1, v0

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/WorkspaceViewGroup;->setClickable(Z)V

    .line 704
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorkspaceViewGroup:[Lcom/nemustech/regina/WorkspaceViewGroup;

    aget-object v1, v1, v0

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/WorkspaceViewGroup;->setLongClickable(Z)V

    .line 702
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 712
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mInterceptView:Lcom/nemustech/regina/Intercepter;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/Intercepter;->setTouchable(Z)V

    .line 713
    return-void
.end method

.method public setViewMode(I)V
    .locals 3
    .parameter "newMode"

    .prologue
    .line 558
    if-ltz p1, :cond_0

    const/4 v0, 0x7

    if-ge p1, v0, :cond_0

    .line 559
    iput p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mViewMode:I

    .line 560
    const-string v0, "ReginaLauncher"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "View mode has changed to "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0, p1}, Lcom/nemustech/regina/ReginaLauncher;->convertViewModeToString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 564
    :goto_0
    return-void

    .line 563
    :cond_0
    const-string v0, "ReginaLauncher"

    const-string v1, "Attempt to set the view mode of Regina Launcher to unsupported mode"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public setWeatherUpdatePeriod(J)V
    .locals 0
    .parameter "period"

    .prologue
    .line 1033
    iput-wide p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherUpdatePeriod:J

    .line 1034
    return-void
.end method

.method public showClockWidgetHourModeSettingDialog(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 1
    .parameter "clockWidget"

    .prologue
    .line 1022
    if-eqz p1, :cond_0

    .line 1023
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettedClockWidget:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    .line 1025
    :cond_0
    const/16 v0, 0xd

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    .line 1026
    return-void
.end method

.method public showClockWidgetTempUnitSettingDialog(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 1
    .parameter "clockWidget"

    .prologue
    .line 1015
    if-eqz p1, :cond_0

    .line 1016
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettedClockWidget:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    .line 1018
    :cond_0
    const/16 v0, 0xc

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    .line 1019
    return-void
.end method

.method public showProgressDialog()V
    .locals 3

    .prologue
    .line 746
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/DialogCare;->createDialog(I)Landroid/app/Dialog;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mProgressDialog:Landroid/app/Dialog;

    .line 747
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mProgressDialog:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 748
    const-string v0, "ReginaLauncher"

    const-string v1, "showing ProgressDialog"

    sget-boolean v2, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 749
    return-void
.end method

.method public showRGWidgetRowSettingDialog(Lcom/nemustech/regina/ElementReginaWidget;I)V
    .locals 2
    .parameter "rowSettedElement"
    .parameter "type"

    .prologue
    .line 1041
    if-eqz p1, :cond_0

    .line 1042
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

    .line 1043
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mRowSettedElement:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/DialogCare;->setRGWidgetRowCount(I)V

    .line 1044
    invoke-virtual {p0, p2}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    .line 1046
    :cond_0
    return-void
.end method

.method public showSearchDialog(Ljava/lang/String;ZLandroid/os/Bundle;Z)V
    .locals 6
    .parameter "initialQuery"
    .parameter "selectInitialQuery"
    .parameter "appSearchData"
    .parameter "globalSearch"

    .prologue
    const/4 v1, 0x0

    .line 3177
    const-string v2, "search"

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/SearchManager;

    .line 3179
    .local v0, searchManager:Landroid/app/SearchManager;
    if-nez p1, :cond_0

    .line 3181
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->getTypedText()Ljava/lang/String;

    move-result-object p1

    .line 3182
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaLauncher;->clearTypedText()V

    .line 3185
    :cond_0
    new-instance v2, Lcom/nemustech/regina/ReginaLauncher$10;

    invoke-direct {v2, p0, v0}, Lcom/nemustech/regina/ReginaLauncher$10;-><init>(Lcom/nemustech/regina/ReginaLauncher;Landroid/app/SearchManager;)V

    invoke-virtual {v0, v2}, Landroid/app/SearchManager;->setOnCancelListener(Landroid/app/SearchManager$OnCancelListener;)V

    .line 3192
    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getComponentName()Landroid/content/ComponentName;

    move-result-object v3

    const/4 v5, 0x1

    move-object v4, v1

    invoke-virtual/range {v0 .. v5}, Landroid/app/SearchManager;->startSearch(Ljava/lang/String;ZLandroid/content/ComponentName;Landroid/os/Bundle;Z)V

    .line 3193
    return-void
.end method

.method public showSelectDialog(I)V
    .locals 1
    .parameter "type"

    .prologue
    .line 999
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/DialogCare;->popDialog(I)V

    .line 1000
    const/4 v0, 0x1

    if-eq p1, v0, :cond_0

    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 1001
    :cond_0
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->vibrateShort()V

    .line 1002
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mDialogCare:Lcom/nemustech/regina/DialogCare;

    invoke-virtual {v0}, Lcom/nemustech/regina/DialogCare;->selectAddEditDialogType()V

    .line 1005
    :cond_1
    return-void
.end method

.method public showSelectedShortCut(Lcom/nemustech/regina/Element;)V
    .locals 15
    .parameter "element"

    .prologue
    .line 1538
    const/4 v5, 0x6

    .line 1540
    .local v5, selectedPanelSideMargin:I
    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/Element;->getInternalObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v8

    check-cast v8, Lcom/nemustech/tiffany/world/TFPanel;

    .line 1541
    .local v8, shortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v11, :cond_0

    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFPanel;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v11

    if-eqz v11, :cond_0

    .line 1542
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v12, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v11, v12}, Lcom/nemustech/tiffany/world/TFPanel;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1546
    :cond_0
    invoke-virtual {v8}, Lcom/nemustech/tiffany/world/TFPanel;->getWidth()F

    move-result v11

    invoke-static {p0, v11}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v7

    .line 1547
    .local v7, shorcut2DWidth:I
    invoke-virtual {v8}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v11

    invoke-static {p0, v11}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v6

    .line 1548
    .local v6, shorcut2DHeight:I
    add-int/lit8 v11, v7, 0x6

    invoke-static {p0, v11}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v10

    .line 1549
    .local v10, shortcut3DWidthWithMargin:F
    add-int/lit8 v11, v6, 0x6

    invoke-static {p0, v11}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v9

    .line 1552
    .local v9, shortcut3DHeightWithMargin:F
    add-int/lit8 v11, v7, 0x6

    add-int/lit8 v12, v6, 0x6

    sget-object v13, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v11, v12, v13}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 1553
    .local v1, bitmap:Landroid/graphics/Bitmap;
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1554
    .local v2, canvas:Landroid/graphics/Canvas;
    new-instance v0, Landroid/graphics/Paint;

    const/4 v11, 0x1

    invoke-direct {v0, v11}, Landroid/graphics/Paint;-><init>(I)V

    .line 1555
    .local v0, backgroundPaint:Landroid/graphics/Paint;
    const/16 v11, 0xff

    const/16 v12, 0x75

    const/16 v13, 0x98

    const/16 v14, 0x29

    invoke-virtual {v0, v11, v12, v13, v14}, Landroid/graphics/Paint;->setARGB(IIII)V

    .line 1556
    new-instance v4, Landroid/graphics/RectF;

    const/4 v11, 0x0

    const/4 v12, 0x0

    add-int/lit8 v13, v7, 0x6

    int-to-float v13, v13

    add-int/lit8 v14, v6, 0x6

    int-to-float v14, v14

    invoke-direct {v4, v11, v12, v13, v14}, Landroid/graphics/RectF;-><init>(FFFF)V

    .line 1557
    .local v4, rectf:Landroid/graphics/RectF;
    const/high16 v11, 0x4170

    const/high16 v12, 0x4170

    invoke-virtual {v2, v4, v11, v12, v0}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    .line 1558
    const/4 v11, 0x0

    invoke-virtual {v8, v11}, Lcom/nemustech/tiffany/world/TFPanel;->getFaceImage(I)Landroid/graphics/Bitmap;

    move-result-object v11

    const/high16 v12, 0x4040

    const/high16 v13, 0x4040

    const/4 v14, 0x0

    invoke-virtual {v2, v11, v12, v13, v14}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 1561
    const/4 v11, 0x3

    new-array v3, v11, [F

    .line 1562
    .local v3, location:[F
    invoke-virtual {v8, v3}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation([F)V

    .line 1563
    new-instance v11, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {v11, v10, v9}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1564
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v12, 0x0

    aget v12, v3, v12

    const/4 v13, 0x1

    aget v13, v3, v13

    const/4 v14, 0x2

    aget v14, v3, v14

    invoke-virtual {v11, v12, v13, v14}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1565
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v12, 0x0

    invoke-virtual {v11, v12, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    .line 1566
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v12, p0, Lcom/nemustech/regina/ReginaLauncher;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v11, v12}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1567
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v12, 0x1

    invoke-virtual {v11, v12}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1568
    iget-object v11, p0, Lcom/nemustech/regina/ReginaLauncher;->mSelectedShortCutPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v12, 0x0

    invoke-virtual {v11, v12}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 1569
    return-void
.end method

.method public showWeatherUpdatePeriodSettingDialog(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 1
    .parameter "clockWidget"

    .prologue
    .line 1008
    if-eqz p1, :cond_0

    .line 1009
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher;->mSettedClockWidget:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    .line 1011
    :cond_0
    const/16 v0, 0xf

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    .line 1012
    return-void
.end method

.method public startActivity(Landroid/content/Intent;)V
    .locals 5
    .parameter "intent"

    .prologue
    const/4 v4, 0x0

    .line 1388
    const-string v1, "ReginaLauncher"

    const-string v2, "startActivity!!"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1389
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsLaunchingApp:Z

    if-nez v1, :cond_0

    .line 1392
    const/4 v1, 0x1

    :try_start_0
    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 1399
    invoke-super {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 1400
    const-string v1, "Intercepter"

    const-string v2, "startActivity - setTouchable is setted false"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_1

    .line 1424
    :cond_0
    :goto_0
    return-void

    .line 1401
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1402
    .local v0, e:Landroid/content/ActivityNotFoundException;
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 1403
    const-string v1, "Intercepter"

    const-string v2, "startActivity - setTouchable is setted true"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1404
    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$5;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ReginaLauncher$5;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 1410
    .end local v0           #e:Landroid/content/ActivityNotFoundException;
    :catch_1
    move-exception v1

    move-object v0, v1

    .line 1411
    .local v0, e:Ljava/lang/SecurityException;
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 1412
    const-string v1, "Intercepter"

    const-string v2, "startActivity - setTouchable is setted true"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1413
    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$6;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ReginaLauncher$6;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 1419
    const-string v1, "ReginaLauncher"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Launcher does not have the permission to launch "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ". Make sure to create a MAIN intent-filter for the corresponding activity "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "or use the exported attribute for this activity."

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method public startActivitySafely(Landroid/content/Intent;)V
    .locals 5
    .parameter "intent"

    .prologue
    const/4 v4, 0x0

    .line 1428
    const-string v1, "ReginaLauncher"

    const-string v2, "startActivity!!"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1429
    iget-boolean v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mIsLaunchingApp:Z

    if-nez v1, :cond_0

    .line 1432
    const/4 v1, 0x1

    :try_start_0
    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 1438
    const/high16 v1, 0x1000

    invoke-virtual {p1, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1439
    invoke-super {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 1440
    const-string v1, "Intercepter"

    const-string v2, "startActivity - setTouchable is setted false"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_1

    .line 1464
    :cond_0
    :goto_0
    return-void

    .line 1441
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1442
    .local v0, e:Landroid/content/ActivityNotFoundException;
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 1443
    const-string v1, "Intercepter"

    const-string v2, "startActivity - setTouchable is setted true"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1444
    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$7;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ReginaLauncher$7;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 1450
    .end local v0           #e:Landroid/content/ActivityNotFoundException;
    :catch_1
    move-exception v1

    move-object v0, v1

    .line 1451
    .local v0, e:Ljava/lang/SecurityException;
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ReginaLauncher;->setLockLaunching(Z)V

    .line 1452
    const-string v1, "Intercepter"

    const-string v2, "startActivity - setTouchable is setted true"

    sget-boolean v3, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1453
    new-instance v1, Lcom/nemustech/regina/ReginaLauncher$8;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/ReginaLauncher$8;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 1459
    const-string v1, "ReginaLauncher"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Launcher does not have the permission to launch "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ". Make sure to create a MAIN intent-filter for the corresponding activity "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "or use the exported attribute for this activity."

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method public startElementLoader()V
    .locals 2

    .prologue
    .line 1523
    new-instance v0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    invoke-direct {v0, p0, p0}, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;-><init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    .line 1524
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mAppInfoManager:Lcom/nemustech/regina/AppInfoManager;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher;->mElementLoader:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->postRunnable(Ljava/lang/Runnable;)V

    .line 1525
    return-void
.end method

.method public startSearch(Ljava/lang/String;ZLandroid/os/Bundle;Z)V
    .locals 0
    .parameter "initialQuery"
    .parameter "selectInitialQuery"
    .parameter "appSearchData"
    .parameter "globalSearch"

    .prologue
    .line 3172
    invoke-virtual {p0, p1, p2, p3, p4}, Lcom/nemustech/regina/ReginaLauncher;->showSearchDialog(Ljava/lang/String;ZLandroid/os/Bundle;Z)V

    .line 3173
    return-void
.end method

.method public startWeatherService()Z
    .locals 5

    .prologue
    .line 460
    new-instance v0, Landroid/content/Intent;

    const-string v2, "com.nemustech.regina.weatherserver.WeatherServer"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 461
    .local v0, intent:Landroid/content/Intent;
    const-string v2, "period"

    iget-wide v3, p0, Lcom/nemustech/regina/ReginaLauncher;->mWeatherUpdatePeriod:J

    invoke-virtual {v0, v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;

    .line 462
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    move-result-object v1

    .line 463
    .local v1, result:Landroid/content/ComponentName;
    if-nez v1, :cond_0

    .line 464
    new-instance v2, Lcom/nemustech/regina/ReginaLauncher$1;

    invoke-direct {v2, p0}, Lcom/nemustech/regina/ReginaLauncher$1;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 471
    const/4 v2, 0x0

    .line 473
    :goto_0
    return v2

    :cond_0
    const/4 v2, 0x1

    goto :goto_0
.end method

.method public stopSearch()V
    .locals 2

    .prologue
    .line 3196
    const-string v1, "search"

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/SearchManager;

    .line 3197
    .local v0, searchManager:Landroid/app/SearchManager;
    invoke-virtual {v0}, Landroid/app/SearchManager;->stopSearch()V

    .line 3198
    return-void
.end method

.method public stopWeatherService()V
    .locals 2

    .prologue
    .line 478
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.nemustech.regina.weatherserver.WeatherServer"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaLauncher;->stopService(Landroid/content/Intent;)Z

    .line 479
    return-void
.end method

.method public updateElementSizeToDatabase(Lcom/nemustech/regina/Element;)V
    .locals 6
    .parameter "e"

    .prologue
    const/4 v5, 0x0

    .line 2296
    new-instance v1, Landroid/content/ContentValues;

    invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V

    .line 2297
    .local v1, values:Landroid/content/ContentValues;
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2299
    .local v0, cr:Landroid/content/ContentResolver;
    const-string v2, "elementX"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getX()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2300
    const-string v2, "elementY"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getY()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2301
    const-string v2, "elementZ"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getZ()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2302
    const-string v2, "elementWidth2D"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getWidth2D()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2303
    const-string v2, "elementHeight2D"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getHeight2D()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2305
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v2

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Lcom/nemustech/regina/ReginaSettings$Favorites;->getContentUri(JZ)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2, v1, v5, v5}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 2306
    return-void
.end method

.method public updateItemDatabase(Lcom/nemustech/regina/Element;)V
    .locals 10
    .parameter "e"

    .prologue
    const/4 v9, 0x0

    .line 2309
    new-instance v3, Landroid/content/ContentValues;

    invoke-direct {v3}, Landroid/content/ContentValues;-><init>()V

    .line 2310
    .local v3, values:Landroid/content/ContentValues;
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2312
    .local v0, cr:Landroid/content/ContentResolver;
    const-string v6, "ReginaLauncher"

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "updateItemDatabase() x="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getX()F

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " y="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getY()F

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " workspace index="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    sget-boolean v8, Lcom/nemustech/regina/ReginaLauncher;->LOG_FLAG:Z

    invoke-static {v6, v7, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2314
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getWorkspaceUID()I

    move-result v2

    .line 2315
    .local v2, uid:I
    const/4 v6, -0x1

    if-eq v2, v6, :cond_0

    .line 2316
    const-string v6, "uid"

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2331
    :goto_0
    const-string v6, "elementX"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getX()F

    move-result v7

    invoke-static {v7}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2332
    const-string v6, "elementY"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getY()F

    move-result v7

    invoke-static {v7}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2333
    const-string v6, "elementZ"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getZ()F

    move-result v7

    invoke-static {v7}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 2334
    const-string v6, "elementWidth2D"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getWidth2D()I

    move-result v7

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2335
    const-string v6, "elementHeight2D"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getHeight2D()I

    move-result v7

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2337
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v6

    const/4 v8, 0x0

    invoke-static {v6, v7, v8}, Lcom/nemustech/regina/ReginaSettings$Favorites;->getContentUri(JZ)Landroid/net/Uri;

    move-result-object v6

    invoke-virtual {v0, v6, v3, v9, v9}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 2338
    return-void

    .line 2318
    :cond_0
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v4

    .line 2319
    .local v4, wsIndex:I
    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getWorkspaceType()I

    move-result v5

    .line 2320
    .local v5, wsType:I
    const/4 v1, 0x0

    .line 2321
    .local v1, isSecret:Z
    if-nez v5, :cond_2

    .line 2322
    const/4 v1, 0x0

    .line 2327
    :cond_1
    :goto_1
    iget-object v6, p0, Lcom/nemustech/regina/ReginaLauncher;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    invoke-virtual {v6, v4, v1}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceUID(IZ)I

    move-result v2

    .line 2328
    const-string v6, "uid"

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    goto :goto_0

    .line 2323
    :cond_2
    const/4 v6, 0x1

    if-ne v5, v6, :cond_1

    .line 2324
    const/4 v1, 0x1

    goto :goto_1
.end method

.method public updateRowNumDatabase(Lcom/nemustech/regina/Element;)V
    .locals 6
    .parameter "e"

    .prologue
    .line 2341
    new-instance v1, Landroid/content/ContentValues;

    invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V

    .line 2342
    .local v1, values:Landroid/content/ContentValues;
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 2344
    .local v0, cr:Landroid/content/ContentResolver;
    const-string v2, "rowNum"

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getRowNum()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 2345
    sget-object v2, Lcom/nemustech/regina/ReginaSettings$Favorites;->CONTENT_URI:Landroid/net/Uri;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "_id="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Lcom/nemustech/regina/Element;->getElementId()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v0, v2, v1, v3, v4}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 2346
    return-void
.end method

.method public vibrateLong()V
    .locals 3

    .prologue
    .line 590
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mVibrator:Landroid/os/Vibrator;

    if-eqz v0, :cond_0

    .line 591
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mVibrator:Landroid/os/Vibrator;

    const-wide/16 v1, 0x64

    invoke-virtual {v0, v1, v2}, Landroid/os/Vibrator;->vibrate(J)V

    .line 593
    :cond_0
    return-void
.end method

.method public vibrateShort()V
    .locals 3

    .prologue
    .line 584
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mVibrator:Landroid/os/Vibrator;

    if-eqz v0, :cond_0

    .line 585
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncher;->mVibrator:Landroid/os/Vibrator;

    const-wide/16 v1, 0x32

    invoke-virtual {v0, v1, v2}, Landroid/os/Vibrator;->vibrate(J)V

    .line 587
    :cond_0
    return-void
.end method
